Skip to content

Commit 5a79cc6

Browse files
authored
fix: add format object type to type file (#1572)
1 parent 08adda5 commit 5a79cc6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

types/index.d.ts

+3-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,9 @@ declare namespace dayjs {
1515

1616
export type ConfigType = ConfigTypeMap[keyof ConfigTypeMap]
1717

18-
export type OptionType = { locale?: string, format?: string, utc?: boolean } | string | string[]
18+
export interface FormatObject { locale?: string, format?: string, utc?: boolean }
19+
20+
export type OptionType = FormatObject | string | string[]
1921

2022
export type UnitTypeShort = 'd' | 'M' | 'y' | 'h' | 'm' | 's' | 'ms'
2123

0 commit comments

Comments
 (0)