You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Where as the propTypes define defaultProps for most of this properties (even if most of them are null). Unless im mistaken (i could well be as im a newbie with type script) when i use the calendar in typescript im required to put all the fields in the interface on the jsx object every time i want to use it as only a couple of the events are marked as optional and all the rest as required. This seems like a major drawback if trying to use with TypeScript?
The text was updated successfully, but these errors were encountered:
cagataycivici
changed the title
Typings - mostly all fields are required but aren't in propTypes?
Calendar d.ts marks all props as required
Feb 9, 2018
Take the calendar for instance, the typings file for it defines it as:
Where as the propTypes define defaultProps for most of this properties (even if most of them are null). Unless im mistaken (i could well be as im a newbie with type script) when i use the calendar in typescript im required to put all the fields in the interface on the jsx object every time i want to use it as only a couple of the events are marked as optional and all the rest as required. This seems like a major drawback if trying to use with TypeScript?
The text was updated successfully, but these errors were encountered: