toObject.d.ts 315 B

1234567891011121314151617181920
  1. import { PluginFunc } from 'dayjs'
  2. declare const plugin: PluginFunc
  3. export = plugin
  4. interface DayjsObject {
  5. years: number
  6. months: number
  7. date: number
  8. hours: number
  9. minutes: number
  10. seconds: number
  11. milliseconds: number
  12. }
  13. declare module 'dayjs' {
  14. interface Dayjs {
  15. toObject(): DayjsObject
  16. }
  17. }