Skip to content

Commit

Permalink
fix: Update type definition to support array format
Browse files Browse the repository at this point in the history
fix #944
  • Loading branch information
iamkun committed Jun 30, 2020
1 parent 62f429d commit 4a04402
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ declare function dayjs (date?: dayjs.ConfigType, option?: dayjs.OptionType, loca
declare namespace dayjs {
export type ConfigType = string | number | Date | Dayjs

export type OptionType = { locale?: string, format?: string, utc?: boolean } | string
export type OptionType = { locale?: string, format?: string, utc?: boolean } | string | string[]

type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
export type UnitType = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date' | UnitTypeShort;
Expand Down

0 comments on commit 4a04402

Please sign in to comment.