UNPKG

546 BTypeScriptView Raw
1import { Options } from "./options";
2import { Instance, FlatpickrFn } from "./instance";
3declare global {
4 interface HTMLElement {
5 flatpickr: (config?: Options) => Instance;
6 _flatpickr?: Instance;
7 }
8 interface NodeList {
9 flatpickr: (config?: Options) => Instance | Instance[];
10 }
11 interface HTMLCollection {
12 flatpickr: (config?: Options) => Instance | Instance[];
13 }
14 interface Window {
15 flatpickr: FlatpickrFn;
16 }
17 interface Date {
18 fp_incr: (n: number) => Date;
19 }
20}