Closed nick-heard closed 1 week ago
Describe the bug The complied output of required in DatePickerProps is required?: string; when it's supposed to be a boolean https://github.com/Hacker0x01/react-datepicker/blob/main/docs/datepicker.md
required
DatePickerProps
required?: string;
Type def in here is incorrect node_modules/react-datepicker/dist/index.d.ts
node_modules/react-datepicker/dist/index.d.ts
To Reproduce Import ReactDatePicker and set the required prop as a boolean
ReactDatePicker
Expected behavior A boolean should be accepted
I see this is a duplicate of https://github.com/Hacker0x01/react-datepicker/issues/4899 so should be resolved soon
Describe the bug The complied output of
required
inDatePickerProps
isrequired?: string;
when it's supposed to be a boolean https://github.com/Hacker0x01/react-datepicker/blob/main/docs/datepicker.mdType def in here is incorrect
node_modules/react-datepicker/dist/index.d.ts
To Reproduce Import
ReactDatePicker
and set the required prop as a booleanExpected behavior A boolean should be accepted