| 26 | type AddDurationType = CreateDurationType & ((duration: Duration) => Duration) |
| 27 | |
| 28 | interface Duration { |
| 29 | new (input: string | number | object, unit?: string, locale?: string): Duration |
| 30 | |
| 31 | clone(): Duration |
| 32 | |
| 33 | humanize(withSuffix?: boolean): string |
| 34 | |
| 35 | milliseconds(): number |
| 36 | asMilliseconds(): number |
| 37 | |
| 38 | seconds(): number |
| 39 | asSeconds(): number |
| 40 | |
| 41 | minutes(): number |
| 42 | asMinutes(): number |
| 43 | |
| 44 | hours(): number |
| 45 | asHours(): number |
| 46 | |
| 47 | days(): number |
| 48 | asDays(): number |
| 49 | |
| 50 | weeks(): number |
| 51 | asWeeks(): number |
| 52 | |
| 53 | months(): number |
| 54 | asMonths(): number |
| 55 | |
| 56 | years(): number |
| 57 | asYears(): number |
| 58 | |
| 59 | as(unit: DurationUnitType): number |
| 60 | |
| 61 | get(unit: DurationUnitType): number |
| 62 | |
| 63 | add: AddDurationType |
| 64 | |
| 65 | subtract: AddDurationType |
| 66 | |
| 67 | toJSON(): string |
| 68 | |
| 69 | toISOString(): string |
| 70 | |
| 71 | format(formatStr?: string): string |
| 72 | |
| 73 | locale(locale: string): Duration |
| 74 | } |
| 75 | } |
| 76 | |
| 77 | declare module class="st">'dayjs' { |
no outgoing calls
no test coverage detected