microsoft / microsoft/TypeScript
Bloomberg TS 5.6 Beta Feedback
Dieses Issue hat noch niemand übernommen.
- Vorherrschende Sprache
- Go
- Sterne
- 111k
- Forks
- 14.4k
- Ø Merge
- 1 T. 19 Std.
- Gemergte PRs (30 T.)
- 117
Beschreibung
Acknowledgement
- I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion.
Comment
We are in the process of evaluating the impact of TS 5.6 beta on Bloomberg code. Below are preliminary findings.
Overall, the only new diagnostics produced by this release are the excellent improvements to nullish/truthy checks.
| Change | Impacts | Release notes | Packages impacted |
|---|---|---|---|
| New nullish/truthy diagnostics | Type checker | Disallowed Nullish and Truthy Checks | ~one dozen |
Stricter type-checking of partial objects
We observed new errors related to nullish/truthy checks, all of which look like correct diagnostics. A few simplified examples are below:
const err = "bar";
// Right operand of ?? is unreachable because the left operand is never nullish.(2869)
const errorMessage = "foo " + err ?? "Unknown error";
// Right operand of ?? is unreachable because the left operand is never nullish.(2869)
const isActive = !someCondition ?? true;
// This kind of expression is always truthy.(2872)
if (myCheck === "foo" || "bar") {
}
Beitragsleitfaden
Erste Schritte
- Lies das ganze Issue und danach den Beitragsleitfaden des Projekts.
- Schreib ins Issue, dass du es übernimmst — das erspart doppelte Arbeit.
- Forke das Repository und arbeite in einem Branch.
- Öffne einen Pull Request, der die Issue-Nummer nennt.
Rechercherichtung
Der Bericht enthält Feedback zur TypeScript-5.6-Beta und vereinfachte Diagnosen, nennt aber keine zu untersuchende Datei, keinen Test und keinen Einstiegspunkt. Bestätigen Sie die gemeldeten Diagnosen anhand der verlinkten Versionshinweise und identifizieren Sie einen reproduzierbaren Fall im Repository, bevor Sie eine Codeänderung definieren.
Vom Indexierungsmodell aus dem Issue-Text verfasst.
Bewertung
- Tech-Stack
- typescript
- Bereich
- compilers
- Issue-Typ
- Bug
- Schwierigkeit
- 5/5
- Geschätzter Aufwand
- Über eine Woche
- Aktivitätsstatus
- Veraltet
- Klarheit
- Muss geklärt werden
- Anfängerfreundlichkeit
- 25/100