Microsoft/TypeScript
GitHub ã§èŠãDefinite assignment assertion in JS not flagged
Open
#48,446 opened on 2022幎3æ27æ¥
BugDomain: JavaScriptHelp Wanted
Repository metrics
- Stars
- Â (48,455 stars)
- PR merge metrics
-  (å¹³åããŒãž 6d 17h) (30d ã§ 9 merged PRs)
説æ
Bug Report
Noted by someone on Discord.
ð Search Terms
non null assertion javascript error
Related https://github.com/microsoft/TypeScript/issues/17222
ð Version & Regression Information
- This is the behavior in every version I tried
⯠Playground Link
Playground link with relevant code
ð» Code
const a = { a!: 1 };
ð Actual behavior
There's no error; crashes at runtime
ð Expected behavior
There should be an error