From 8d54f3f7d4d161e72c767fa09699e70a2b3d681c Mon Sep 17 00:00:00 2001 From: iamkun Date: Thu, 2 Jul 2020 17:20:18 +0800 Subject: [PATCH] fix: Update type definition to support strict mode (#951) --- types/index.d.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 22c919b8f..3d318103d 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -1,7 +1,12 @@ /// export = dayjs; -declare function dayjs (date?: dayjs.ConfigType, option?: dayjs.OptionType, locale?: string): dayjs.Dayjs + +declare function dayjs (date?: dayjs.ConfigType): dayjs.Dayjs + +declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, strict?: boolean): dayjs.Dayjs + +declare function dayjs (date?: dayjs.ConfigType, format?: dayjs.OptionType, locale?: string, strict?: boolean): dayjs.Dayjs declare namespace dayjs { export type ConfigType = string | number | Date | Dayjs