DefinitelyTyped/types/react-flatpickr/index.d.ts
Nathan Shively-Sanders cc06c0bd23 Update react-flatpickr with flatpickr's new exports
It switched to a default export that contains nested-nested types.
2018-03-28 11:13:16 -07:00

18 lines
580 B
TypeScript

// Type definitions for react-flatpickr 3.2
// Project: https://github.com/coderhaoxin/react-flatpickr
// Definitions by: begincalendar <https://github.com/begincalendar>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.6
import { Component } from 'react';
import flatpickr from 'flatpickr';
export interface DateTimePickerProps {
defaultValue?: string;
options?: flatpickr.Options.Options;
onChange?: flatpickr.Options.Hook;
value?: string;
}
export default class DatePicker extends Component<DateTimePickerProps> {}