From 81d4740511d47e34f891b21afeb0449ef8a28688 Mon Sep 17 00:00:00 2001 From: iamkun Date: Tue, 30 Jun 2020 11:19:35 +0800 Subject: [PATCH] fix: Update type definition to support array format (#945) 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 1f58a9cc..22c919b8 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;