1 | import { PluginFunc } from 'dayjs'
|
2 |
|
3 | declare const plugin: PluginFunc
|
4 | export = plugin
|
5 |
|
6 | declare module 'dayjs' {
|
7 | type WeekdayNames = [string, string, string, string, string, string, string];
|
8 | type MonthNames = [string, string, string, string, string, string, string, string, string, string, string, string];
|
9 |
|
10 | interface InstanceLocaleDataReturn {
|
11 | firstDayOfWeek(): number;
|
12 | weekdays(instance?: Dayjs): WeekdayNames;
|
13 | weekdaysShort(instance?: Dayjs): WeekdayNames;
|
14 | weekdaysMin(instance?: Dayjs): WeekdayNames;
|
15 | months(instance?: Dayjs): MonthNames;
|
16 | monthsShort(instance?: Dayjs): MonthNames;
|
17 | longDateFormat(format: string): string;
|
18 | meridiem(hour?: number, minute?: number, isLower?: boolean): string;
|
19 | }
|
20 |
|
21 | interface GlobalLocaleDataReturn {
|
22 | firstDayOfWeek(): number;
|
23 | weekdays(): WeekdayNames;
|
24 | weekdaysShort(): WeekdayNames;
|
25 | weekdaysMin(): WeekdayNames;
|
26 | months(): MonthNames;
|
27 | monthsShort(): MonthNames;
|
28 | longDateFormat(format: string): string;
|
29 | meridiem(hour?: number, minute?: number, isLower?: boolean): string;
|
30 | }
|
31 |
|
32 | interface Dayjs {
|
33 | localeData(): InstanceLocaleDataReturn;
|
34 | }
|
35 |
|
36 | export function weekdays(localOrder?: boolean): WeekdayNames;
|
37 | export function weekdaysShort(localOrder?: boolean): WeekdayNames;
|
38 | export function weekdaysMin(localOrder?: boolean): WeekdayNames;
|
39 | export function monthsShort(): MonthNames;
|
40 | export function months(): MonthNames;
|
41 | export function localeData(): GlobalLocaleDataReturn;
|
42 | }
|