diff --git a/types/index.d.ts b/types/index.d.ts index 91a84234..46c2f933 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -17,7 +17,8 @@ declare namespace dayjs { type UnitTypeLong = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date' - type UnitTypeLongPlural = `${UnitTypeLong}s` + type UnitTypeLongPlural = 'milliseconds' | 'seconds' | 'minutes' | 'hours' | 'days' | 'months' | 'years' | 'dates' + export type UnitType = UnitTypeLong | UnitTypeLongPlural | UnitTypeShort; export type OpUnitType = UnitType | "week" | "weeks" | 'w';