We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 08adda5 commit 5a79cc6Copy full SHA for 5a79cc6
types/index.d.ts
@@ -15,7 +15,9 @@ declare namespace dayjs {
15
16
export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]
17
18
- export type OptionType = { locale?: string, format?: string, utc?: boolean } | string | string[]
+ export interface FormatObject { locale?: string, format?: string, utc?: boolean }
19
+
20
+ export type OptionType = FormatObject | string | string[]
21
22
export type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
23
0 commit comments