UNPKG

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