Skip to content

Commit b87aa0e

Browse files
fix: timezone type mark date parameter as optional (#2222)
1 parent 9b4fcfd commit b87aa0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/plugin/timezone.d.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ declare module 'dayjs' {
1010
}
1111

1212
interface DayjsTimezone {
13-
(date: ConfigType, timezone?: string): Dayjs
13+
(date?: ConfigType, timezone?: string): Dayjs
1414
(date: ConfigType, format: string, timezone?: string): Dayjs
1515
guess(): string
1616
setDefault(timezone?: string): void

0 commit comments

Comments
 (0)