Skip to content

Commit 81d4740

Browse files
authored
fix: Update type definition to support array format (#945)
fix #944
1 parent ba9c8b7 commit 81d4740

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ declare function dayjs (date?: dayjs.ConfigType, option?: dayjs.OptionType, loca
66
declare namespace dayjs {
77
export type ConfigType = string | number | Date | Dayjs
88

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

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

0 commit comments

Comments
 (0)