From 9767544ab24c24b8e1572927cfda291f7a9373e6 Mon Sep 17 00:00:00 2001 From: Gabriele Petrioli Date: Sat, 26 Sep 2020 16:07:54 +0300 Subject: [PATCH] Fix optional types for .tz() fixes #1079 --- types/plugin/timezone.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/types/plugin/timezone.d.ts b/types/plugin/timezone.d.ts index 015e45ba2..558558562 100644 --- a/types/plugin/timezone.d.ts +++ b/types/plugin/timezone.d.ts @@ -5,11 +5,11 @@ export = plugin declare module 'dayjs' { interface Dayjs { - tz(timezone: string): Dayjs + tz(timezone?: string): Dayjs } interface DayjsTimezone { - (date: ConfigType, timezone: string): Dayjs + (date: ConfigType, timezone?: string): Dayjs guess(): string setDefault(timezone?: string): void }