UNPKG

617 BTypeScriptView Raw
1import { PluginFunc, OpUnitType, ConfigType } from 'dayjs/esm'
2
3declare const plugin: PluginFunc
4export = plugin
5
6type ISOUnitType = OpUnitType | 'isoWeek';
7
8declare module 'dayjs/esm' {
9 interface Dayjs {
10 isoWeekYear(): number
11 isoWeek(): number
12 isoWeek(value: number): Dayjs
13
14 isoWeekday(): number
15 isoWeekday(value: number): Dayjs
16
17 startOf(unit: ISOUnitType): Dayjs
18
19 endOf(unit: ISOUnitType): Dayjs
20
21 isSame(date?: ConfigType, unit?: ISOUnitType): boolean
22
23 isBefore(date?: ConfigType, unit?: ISOUnitType): boolean
24
25 isAfter(date?: ConfigType, unit?: ISOUnitType): boolean
26 }
27}