From b87aa0ed9a748c478a66ef48230cd1d6350d7b8a Mon Sep 17 00:00:00 2001 From: andrew-atwood-infinitusai <110616655+andrew-atwood-infinitusai@users.noreply.github.com> Date: Sat, 11 Feb 2023 00:46:32 -0600 Subject: [PATCH] fix: timezone type mark `date` parameter as optional (#2222) --- types/plugin/timezone.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/plugin/timezone.d.ts b/types/plugin/timezone.d.ts index d504f692..049bb087 100644 --- a/types/plugin/timezone.d.ts +++ b/types/plugin/timezone.d.ts @@ -10,7 +10,7 @@ declare module 'dayjs' { } interface DayjsTimezone { - (date: ConfigType, timezone?: string): Dayjs + (date?: ConfigType, timezone?: string): Dayjs (date: ConfigType, format: string, timezone?: string): Dayjs guess(): string setDefault(timezone?: string): void