From dbf333e4d14006e51d9f2d74cf8f6ccbb13faf40 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fay=C3=A7al=20Tirich?= Date: Fri, 1 Feb 2019 09:47:33 +0100 Subject: [PATCH 1/3] [@types/react-flatpickr] Add className to DateTimePickerProps --- types/react-flatpickr/index.d.ts | 1 + types/react-flatpickr/react-flatpickr-tests.tsx | 3 +++ 2 files changed, 4 insertions(+) diff --git a/types/react-flatpickr/index.d.ts b/types/react-flatpickr/index.d.ts index c867527b06..c1420a6b26 100644 --- a/types/react-flatpickr/index.d.ts +++ b/types/react-flatpickr/index.d.ts @@ -20,6 +20,7 @@ export interface DateTimePickerProps { onValueUpdate?: flatpickr.Options.Hook; onDayCreate?: flatpickr.Options.Hook; value?: string | Date | number | ReadonlyArray; + className?: string; } export default class DatePicker extends Component {} diff --git a/types/react-flatpickr/react-flatpickr-tests.tsx b/types/react-flatpickr/react-flatpickr-tests.tsx index 7a1c64c266..f7834c97a8 100644 --- a/types/react-flatpickr/react-flatpickr-tests.tsx +++ b/types/react-flatpickr/react-flatpickr-tests.tsx @@ -4,6 +4,9 @@ import DatePicker from "react-flatpickr"; const noParamsElement = ; +const classNameElement = ; + + const defaultValueElement = ; const options = { From 48ea9749fb32a32dbcb4a7bb15a43405a419388c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fay=C3=A7al=20Tirich?= Date: Fri, 1 Feb 2019 09:58:12 +0100 Subject: [PATCH 2/3] [@types/react-flatpickr] Increase the version number in the header --- types/react-flatpickr/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/react-flatpickr/index.d.ts b/types/react-flatpickr/index.d.ts index c1420a6b26..0ec95e5159 100644 --- a/types/react-flatpickr/index.d.ts +++ b/types/react-flatpickr/index.d.ts @@ -1,4 +1,4 @@ -// Type definitions for react-flatpickr 3.6 +// Type definitions for react-flatpickr 3.7 // Project: https://github.com/coderhaoxin/react-flatpickr // Definitions by: begincalendar // snaveevans From f2e8282d408eb8c61c835c372539884b015685d0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fay=C3=A7al=20Tirich?= Date: Sat, 2 Feb 2019 16:49:46 +0100 Subject: [PATCH 3/3] Remove blank line --- types/react-flatpickr/react-flatpickr-tests.tsx | 1 - 1 file changed, 1 deletion(-) diff --git a/types/react-flatpickr/react-flatpickr-tests.tsx b/types/react-flatpickr/react-flatpickr-tests.tsx index f7834c97a8..b80fd83888 100644 --- a/types/react-flatpickr/react-flatpickr-tests.tsx +++ b/types/react-flatpickr/react-flatpickr-tests.tsx @@ -6,7 +6,6 @@ const noParamsElement = ; const classNameElement = ; - const defaultValueElement = ; const options = {