Skip to content

Commit

Permalink
fix: fix typescript type error UnitTypeLongPlural (#1302)
Browse files Browse the repository at this point in the history
fix #1300
  • Loading branch information
iamkun authored Jan 3, 2021
1 parent b60466e commit bfaabe4
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 bfaabe4

Please sign in to comment.