From 080aa0845b61ad112b646de8baaecf1e62cf9861 Mon Sep 17 00:00:00 2001 From: Justin Leider Date: Wed, 26 Feb 2020 14:29:02 -0500 Subject: [PATCH] react-flatpickr add underlying flatpickr instance property (#42620) --- types/react-flatpickr/index.d.ts | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/types/react-flatpickr/index.d.ts b/types/react-flatpickr/index.d.ts index ac470b8f64..74af2136a0 100644 --- a/types/react-flatpickr/index.d.ts +++ b/types/react-flatpickr/index.d.ts @@ -4,6 +4,7 @@ // snaveevans // rigothedev // doniyor2109 +// jleider // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.8 @@ -28,4 +29,6 @@ export interface DateTimePickerProps extends Omit, 'va render?: (props: Omit, ref: (node: HTMLInputElement) => void) => ReactElement; } -export default class DatePicker extends Component {} +export default class DatePicker extends Component { + flatpickr: flatpickr.Instance; +}