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
My opinion (from #21030) is obviously to be more specific. In your example for string enums and indexing it would be the: { a: number } | { b: number } option.
Add
promised
type (continued)#17077
await
?awaited
?Promise
/PromiseLike
s experience relating to union type inference?String enums and indexing
Now that string-enums are a thing, people want to use them everywhere, like in
Would need to generalize declarations constructed with literal types:
What would we do in the case of
Is that
Leaning towards last option for practicality.
What about cases where you want to quickly manufacture distinct cases?
Unionize
.type m = { a: number; } | { b: number; }
The text was updated successfully, but these errors were encountered: