-
Notifications
You must be signed in to change notification settings - Fork 787
Use Partial<TData> rather than TData | {} #2313
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Great idea @tgriesser - thanks very much!
Not sure why |
I agree with @donataswix - use of Partial makes all properties optional and is not correct. @hwillson we should get a patch out asap as this is a breaking change to all users who are strongly typed, I'll put up the PR now. |
This reverts commit 2f15d9f.
Yeah, I think main issue here was the change to Keeping |
This is related to the changes in #1983 - I think
Partial<TData>
better captures the intent of the change and plays much nicer with TypeScript, intellisense autocompletion, etc.