1 | import { PluginFunc, ConfigType } from 'dayjs'
|
2 |
|
3 | declare const plugin: PluginFunc
|
4 | export = plugin
|
5 |
|
6 | declare module 'dayjs' {
|
7 | interface Dayjs {
|
8 | tz(timezone?: string, keepLocalTime?: boolean): Dayjs
|
9 | offsetName(type?: 'short' | 'long'): string | undefined
|
10 | }
|
11 |
|
12 | interface DayjsTimezone {
|
13 | (date: ConfigType, timezone?: string): Dayjs
|
14 | (date: ConfigType, format: string, timezone?: string): Dayjs
|
15 | guess(): string
|
16 | setDefault(timezone?: string): void
|
17 | }
|
18 |
|
19 | const tz: DayjsTimezone
|
20 | }
|