UNPKG

509 BTypeScriptView Raw
1import { PluginFunc, ConfigType } from 'dayjs/esm'
2
3declare const plugin: PluginFunc
4export = plugin
5
6declare module 'dayjs/esm' {
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}