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
I think it's reasonable to handle invalid types yourself before passing them to a function. I'd think Parameters<SomeFunc | undefined> also fails the same way for example.
I see your point. I thought that it might be a good addition with an option like recurseIntoArrays (maybe allowUndefinedInUnion ?).
Especially with complex and deep types :
SharedUnionFieldsDeep
doesn't work with Union that haveundefined
.For example :
Here,
OptionalPet
keeps the full union, but we might expect the following output :Upvote & Fund
The text was updated successfully, but these errors were encountered: