diff --git a/types/react-flatpickr/index.d.ts b/types/react-flatpickr/index.d.ts index 0ec95e5159..9d070494b4 100644 --- a/types/react-flatpickr/index.d.ts +++ b/types/react-flatpickr/index.d.ts @@ -2,13 +2,16 @@ // 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 interface DateTimePickerProps { +export type Omit = Pick>; + +export interface DateTimePickerProps extends Omit, 'value'> { defaultValue?: string; options?: flatpickr.Options.Options; onChange?: flatpickr.Options.Hook; diff --git a/types/react-flatpickr/react-flatpickr-tests.tsx b/types/react-flatpickr/react-flatpickr-tests.tsx index b80fd83888..cbad38fd58 100644 --- a/types/react-flatpickr/react-flatpickr-tests.tsx +++ b/types/react-flatpickr/react-flatpickr-tests.tsx @@ -42,3 +42,5 @@ const valueDateArrayElement = ( const valueNumberArrayElement = ( ); + +const extraInputPropertiesElement = ;