timezone.d.ts 309 B

1234567891011121314151617
  1. import { PluginFunc, ConfigType } from 'dayjs'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. declare module 'dayjs' {
  5. interface Dayjs {
  6. tz(timezone: string): Dayjs
  7. }
  8. interface DayjsTimezone {
  9. (date: ConfigType, timezone: string): Dayjs
  10. guess(): string
  11. }
  12. const tz: DayjsTimezone
  13. }