Skip to content

Commit a6ebcf2

Browse files
authored
fix: Fix optional type for timezone plugin (#1081)
fixes #1079
1 parent e248f33 commit a6ebcf2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/plugin/timezone.d.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@ export = plugin
55

66
declare module 'dayjs' {
77
interface Dayjs {
8-
tz(timezone: string): Dayjs
8+
tz(timezone?: string): Dayjs
99
}
1010

1111
interface DayjsTimezone {
12-
(date: ConfigType, timezone: string): Dayjs
12+
(date: ConfigType, timezone?: string): Dayjs
1313
guess(): string
1414
setDefault(timezone?: string): void
1515
}

0 commit comments

Comments
 (0)