// Type definitions for react-flatpickr 3.7 // Project: https://github.com/coderhaoxin/react-flatpickr // Definitions by: begincalendar // snaveevans // rigothedev // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 import { Component } from "react"; import flatpickr from "flatpickr"; export type Omit = Pick>; export interface DateTimePickerProps extends Omit, 'value'> { defaultValue?: string; options?: flatpickr.Options.Options; onChange?: flatpickr.Options.Hook; onOpen?: flatpickr.Options.Hook; onClose?: flatpickr.Options.Hook; onMonthChange?: flatpickr.Options.Hook; onYearChange?: flatpickr.Options.Hook; onReady?: flatpickr.Options.Hook; onValueUpdate?: flatpickr.Options.Hook; onDayCreate?: flatpickr.Options.Hook; value?: string | Date | number | ReadonlyArray; className?: string; } export default class DatePicker extends Component {}