We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ba9c8b7 commit 81d4740Copy full SHA for 81d4740
types/index.d.ts
@@ -6,7 +6,7 @@ declare function dayjs (date?: dayjs.ConfigType, option?: dayjs.OptionType, loca
6
declare namespace dayjs {
7
export type ConfigType = string | number | Date | Dayjs
8
9
- export type OptionType = { locale?: string, format?: string, utc?: boolean } | string
+ export type OptionType = { locale?: string, format?: string, utc?: boolean } | string | string[]
10
11
type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
12
export type UnitType = 'millisecond' | 'second' | 'minute' | 'hour' | 'day' | 'month' | 'year' | 'date' | UnitTypeShort;
0 commit comments