Skip to content

Commit

Permalink
Fix optional types for .tz()
Browse files Browse the repository at this point in the history
  • Loading branch information
gpetrioli committed Sep 26, 2020
1 parent e248f33 commit 9767544
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions types/plugin/timezone.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 9767544

Please sign in to comment.