diff --git a/types/react-bootstrap-date-picker/index.d.ts b/types/react-bootstrap-date-picker/index.d.ts index 26bd907df7..2cbedb674a 100644 --- a/types/react-bootstrap-date-picker/index.d.ts +++ b/types/react-bootstrap-date-picker/index.d.ts @@ -1,6 +1,6 @@ // Type definitions for react-bootstrap-date-picker 4.0 // Project: https://github.com/pushtell/react-bootstrap-date-picker#readme -// Definitions by: Karol Janyst +// Definitions by: Karol Janyst , Antal Bodnar // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped // TypeScript Version: 2.3 @@ -19,6 +19,8 @@ declare namespace DatePicker { interface DatePickerProps { value?: string; defaultValue?: string; + minDate?: string; + maxDate?: string; style?: any; className?: string; autoFocus?: boolean; diff --git a/types/react-bootstrap-date-picker/react-bootstrap-date-picker-tests.tsx b/types/react-bootstrap-date-picker/react-bootstrap-date-picker-tests.tsx index 4f60e7d665..07928a09ea 100644 --- a/types/react-bootstrap-date-picker/react-bootstrap-date-picker-tests.tsx +++ b/types/react-bootstrap-date-picker/react-bootstrap-date-picker-tests.tsx @@ -12,6 +12,8 @@ class Test extends React.Component { {} } dateFormat="MM/DD/YYYY" + minDate="2017-01-01T00:00:00.000Z" + maxDate="2017-12-31T23:59:59.999Z" clearButtonElement="x" showClearButton={ true } onClear={ () => {} }