1 | import { PluginFunc, OpUnitType, ConfigType } from 'dayjs/esm'
|
2 |
|
3 | declare const plugin: PluginFunc
|
4 | export = plugin
|
5 |
|
6 | type ISOUnitType = OpUnitType | 'isoWeek';
|
7 |
|
8 | declare 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 | }
|