18 lines
309 B
TypeScript
18 lines
309 B
TypeScript
import { PluginFunc, ConfigType } from 'dayjs'
|
|
|
|
declare const plugin: PluginFunc
|
|
export = plugin
|
|
|
|
declare module 'dayjs' {
|
|
interface Dayjs {
|
|
tz(timezone: string): Dayjs
|
|
}
|
|
|
|
interface DayjsTimezone {
|
|
(date: ConfigType, timezone: string): Dayjs
|
|
guess(): string
|
|
}
|
|
|
|
const tz: DayjsTimezone
|
|
}
|