/*! Copyright (c) 2019, XAPPmedia */ /** * Text that describes the format of a duration, for example "years" or "M" for months. * * This is the same as the moment.js duration format. */ export type DurationFormat = "year" | "years" | "y" | "quarter" | "quarters" | "Q" | "month" | "months" | "M" | "week" | "weeks" | "w" | "day" | "days" | "d" | "hour" | "hours" | "h" | "minute" | "minutes" | "m" | "second" | "seconds" | "s" | "millisecond" | "milliseconds" | "ms"; /** * Duration, amount and format. */ export interface Duration { readonly amount: number; readonly format: DurationFormat; }