utc.d.ts 348 B

12345678910111213141516171819
  1. import { PluginFunc, ConfigType } from 'dayjs'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. declare module 'dayjs' {
  5. interface Dayjs {
  6. utc(): Dayjs
  7. local(): Dayjs
  8. isUTC(): boolean
  9. utcOffset(offset: number, keepLocalTime?: boolean): Dayjs
  10. }
  11. export function utc(config?: ConfigType, format?: string): Dayjs
  12. }