审查视图

node_modules/dayjs/plugin/objectSupport.d.ts 1.2 KB
韩昌 authored
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48
import { PluginFunc } from 'dayjs'

declare const plugin: PluginFunc
export = plugin

declare module 'dayjs' {
    interface Dayjs {
        set(argument: object): Dayjs
        add(argument: object): Dayjs
        subtract(argument: object): Dayjs
    }

    interface ConfigTypeMap {
        objectSupport: {
            years?: number | string;
            year?: number | string;
            y?: number | string;

            months?: number | string;
            month?: number | string;
            M?: number | string;

            days?: number | string;
            day?: number | string;
            d?: number | string;

            dates?: number | string;
            date?: number | string;
            D?: number | string;

            hours?: number | string;
            hour?: number | string;
            h?: number | string;

            minutes?: number | string;
            minute?: number | string;
            m?: number | string;

            seconds?: number | string;
            second?: number | string;
            s?: number | string;

            milliseconds?: number | string;
            millisecond?: number | string;
            ms?: number | string;
        }
    }
}