UNPKG

566 BTypeScriptView Raw
1import { PluginFunc, ConfigType, QUnitType } from 'dayjs'
2
3declare const plugin: PluginFunc
4export = plugin
5
6declare module 'dayjs' {
7 interface Dayjs {
8 quarter(): number
9
10 quarter(quarter: number): Dayjs
11
12 add(value: number, unit: QUnitType): Dayjs
13
14 subtract(value: number, unit: QUnitType): Dayjs
15
16 startOf(unit: QUnitType): Dayjs
17
18 endOf(unit: QUnitType): Dayjs
19
20 isSame(date: ConfigType, unit?: QUnitType): boolean
21
22 isBefore(date: ConfigType, unit?: QUnitType): boolean
23
24 isAfter(date: ConfigType, unit?: QUnitType): boolean
25 }
26}