Skip to content

Commit

Permalink
Merge pull request #1303 from iamkun/dev
Browse files Browse the repository at this point in the history
D2M
  • Loading branch information
iamkun authored Jan 3, 2021
2 parents b60466e + bfaabe4 commit 519f39e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down

0 comments on commit 519f39e

Please sign in to comment.