Closed
Description
Bug Report
π Search Terms
TS2801
π Version & Regression Information
- This changed between versions 4.4.2 and 4.3.5
β― Playground Link
Playground link with relevant code
π» Code
const a: { [key: string]: Promise<string> } = {}
if (a['a']) {
}
π Actual behavior
This condition will always return true since this 'Promise' is always defined.
π Expected behavior
No error.
Metadata
Metadata
Assignees
Labels
No labels