From 7b5b4c71eef72921d5a7d00c6655a6155d91e55d Mon Sep 17 00:00:00 2001 From: andrew-atwood-infinitusai <110616655+andrew-atwood-infinitusai@users.noreply.github.com> Date: Wed, 1 Feb 2023 14:01:55 -0600 Subject: [PATCH] timezone: Mark `date` parameter as optional --- 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 d504f6927..049bb0870 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