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] [@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 = {