Skip to content

Commit

Permalink
fix: Fix optional type for timezone plugin (#1081)
Browse files Browse the repository at this point in the history
fixes #1079
  • Loading branch information
gpetrioli authored Sep 27, 2020
1 parent e248f33 commit a6ebcf2
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 a6ebcf2

Please sign in to comment.