We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent e248f33 commit a6ebcf2Copy full SHA for a6ebcf2
types/plugin/timezone.d.ts
@@ -5,11 +5,11 @@ export = plugin
5
6
declare module 'dayjs' {
7
interface Dayjs {
8
- tz(timezone: string): Dayjs
+ tz(timezone?: string): Dayjs
9
}
10
11
interface DayjsTimezone {
12
- (date: ConfigType, timezone: string): Dayjs
+ (date: ConfigType, timezone?: string): Dayjs
13
guess(): string
14
setDefault(timezone?: string): void
15
0 commit comments