Infer boolean literals from strict equality comparisons of other literal types
Offen
feature request
wishlist
- Vorherrschende Sprache
- Rust
- Sterne
- 22.3k
- Forks
- 1.9k
- PR-Merge-Kennzahlen
- Keine gemergten PRs in 30 T.
Beschreibung
Wouldn't it be cool if `1 === 1` was inferred to have type `true` instead of `boolean`? Such a small, silly feature, how can we afford _not_ to have it? /cc @mroch ;)
Beitragsleitfaden
Bewertung
Dieses Issue wurde noch nicht bewertet.