From 4a044021749c9e52b58f84ec294eb57513f411fb Mon Sep 17 00:00:00 2001 From: iamkun Date: Tue, 30 Jun 2020 11:04:59 +0800 Subject: [PATCH] fix: Update type definition to support array format fix #944 --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 1f58a9ccb..22c919b8f 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -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;