globals.d.ts 546 Bytes
Newer Older
Joe TS Dell's avatar
Joe TS Dell committed
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { Options } from "./options";
import { Instance, FlatpickrFn } from "./instance";
declare global {
    interface HTMLElement {
        flatpickr: (config?: Options) => Instance;
        _flatpickr?: Instance;
    }
    interface NodeList {
        flatpickr: (config?: Options) => Instance | Instance[];
    }
    interface HTMLCollection {
        flatpickr: (config?: Options) => Instance | Instance[];
    }
    interface Window {
        flatpickr: FlatpickrFn;
    }
    interface Date {
        fp_incr: (n: number) => Date;
    }
}