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
Expand on SharedUnionFields with a type that keeps all the union fields.
This is a simplified version of #386.
This new type will simply change non-shared fields to optional with value unknown. Or with an option (proposed name exact), will be changed to be optional with a value of the union of all values for that property within the union.
Edit: This new type will change each field to be optional with a value of the union of all values for that property within the union.
Simple example by modifying the SharedUnionFields's example (probably not that great an example of why you'd actually want to use this type)
After thinking about this a bit more, I think I was being overly cautious with the exact option opt-in. I think that should probably be just the way it works.
Type description + examples
Expand on
SharedUnionFields
with a type that keeps all the union fields.This is a simplified version of #386.
This new type will simply change non-shared fields to optional with valueunknown
. Or with an option (proposed nameexact
), will be changed to be optional with a value of the union of all values for that property within the union.Edit: This new type will change each field to be optional with a value of the union of all values for that property within the union.
Simple example by modifying the
SharedUnionFields
's example (probably not that great an example of why you'd actually want to use this type)Type source
No response
Search existing types and issues first
Upvote & Fund
The text was updated successfully, but these errors were encountered: