From 9e02bd4ef3c603bb46442499db4c1c8858aaf019 Mon Sep 17 00:00:00 2001 From: Qrymy Date: Fri, 18 Sep 2020 10:47:47 +0900 Subject: [PATCH 1/2] Add `setDefault` typing to timezone.d.ts --- types/plugin/timezone.d.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/types/plugin/timezone.d.ts b/types/plugin/timezone.d.ts index dce3b8b06..af283c32f 100644 --- a/types/plugin/timezone.d.ts +++ b/types/plugin/timezone.d.ts @@ -11,6 +11,7 @@ declare module 'dayjs' { interface DayjsTimezone { (date: ConfigType, timezone: string): Dayjs guess(): string + setDefault(timezone?: string): Dayjs } const tz: DayjsTimezone From 02611df10777d112e4a950759a6fbba9ede3bd51 Mon Sep 17 00:00:00 2001 From: Qrymy Date: Fri, 18 Sep 2020 11:05:19 +0900 Subject: [PATCH 2/2] Replace `Dayjs` to `void` --- 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 af283c32f..015e45ba2 100644 --- a/types/plugin/timezone.d.ts +++ b/types/plugin/timezone.d.ts @@ -11,7 +11,7 @@ declare module 'dayjs' { interface DayjsTimezone { (date: ConfigType, timezone: string): Dayjs guess(): string - setDefault(timezone?: string): Dayjs + setDefault(timezone?: string): void } const tz: DayjsTimezone