Skip to content

Commit

Permalink
fix: Update type definition to support array format (#945)
Browse files Browse the repository at this point in the history
fix #944
  • Loading branch information
iamkun authored Jun 30, 2020
1 parent ba9c8b7 commit 81d4740
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 81d4740

Please sign in to comment.