react-flatpickr add underlying flatpickr instance property (#42620)

This commit is contained in:
Justin Leider 2020-02-26 14:29:02 -05:00 committed by GitHub
parent 8f9dbc069a
commit 080aa0845b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -4,6 +4,7 @@
// snaveevans <https://github.com/snaveevans>
// rigothedev <https://github.com/rigothedev>
// doniyor2109 <https://github.com/doniyor2109>
// jleider <https://github.com/jleider>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
@ -28,4 +29,6 @@ export interface DateTimePickerProps extends Omit<Partial<HTMLInputElement>, 'va
render?: (props: Omit<DateTimePickerProps, 'options' | 'render'>, ref: (node: HTMLInputElement) => void) => ReactElement;
}
export default class DatePicker extends Component<DateTimePickerProps> {}
export default class DatePicker extends Component<DateTimePickerProps> {
flatpickr: flatpickr.Instance;
}