Type narrowing for awaited values #30551
Labels
Awaiting More Feedback
This means we'd like to hear from more people who would be helped by this feature
Suggestion
An idea for TypeScript
Uh oh!
There was an error while loading. Please reload this page.
Search Terms
promise, type narrowing, await
Suggestion
The type narrowing that occurs inside
if
statements, should work with awaited valuesThough generally speaking a type is used for values that are already
Examples
Checklist
My suggestion meets these guidelines:
The text was updated successfully, but these errors were encountered: