TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
### 🔎 Search Terms require import js ts module esm esmodule cjs commonjs ### 🕗 Version & Regression Information - This happens in the nightly version of TS ### ⏯...
### 🔎 Search Terms assigning to record number ### 🕗 Version & Regression Information - This is the behavior in every version I tried, and I reviewed the FAQ for...
# Suggestion ## 🔍 Search Terms `tsc --build --noEmit` build noEmit List of keywords you searched for before creating this issue. Write them down here so that others can find...
### ⚙ Compilation target ESNext ### ⚙ Library n/a ### Missing / Incorrect Definition - `Temporal` - `Temporal.Now` - `Temporal.Instant` - `Temporal.ZonedDateTime` - `Temporal.PlainDate`, `Temporal.PlainTime`, `Temporal.PlainDateTime` - `Temporal.PlainYearMonth`, `Temporal.PlainMonthDay` -...
### 🔍 Search Terms I have a project A, which has path: "@" configured in it. Then this alais is used in this project. Another project B references the code...
Fixes #58644 The interface were missing for subclasses of `PerformanceEntry` which causes an error when we try to run below code snippet [Playground Link](https://www.typescriptlang.org/play/?#code/GYVwdgxgLglg9mABABwIYHMCmB1VBnAJU1QBs5UATTCgCgEoAuRAIzjhOKQG8AoRfxACdMUEIKTJMg4HEEBbVJEx8BqgHRYoAUTBRBMTHgBCATwAqJyTQDkYVADcY6VLATW6K1fwD03xFsFBWSYzAGUAJgBmSIBOJgAFIMlBKBNEVMlECjhDRDA4KERMAA8YPEKEdMtMRHipGXlFCEwdPRNPL19EMwALMsR+gHcgsHQAGhZMCFQQPBqoPrwBpdRa+tkFJQA5BycXeDAzGDkYUcQ4ZgArKagO9Tw4OUwaTF1BNIBeAD4it5M1DI1D7AxDWYRkSjuADcPAAvkA) ```ts function pageWasRealoaded(): boolean { return...
### 🔎 Search Terms predicate return type passed parameter ### 🕗 Version & Regression Information Latest to date. ### ⏯ Playground Link https://www.typescriptlang.org/play/?target=99&jsx=0#code/JYOwLgpgTgZghgYwgAgGIHt0EZkG8CwAUAJAyYBcyAzmFKAOYDcRxV6AthGABYMD6EADZUIlAK4gA1iHQB3EM0IBfIkVCRYiFBnQAmPCzLpKIMewBG0RcTgye0PjwbipM+YpWE14aPCTIAITgoAxJzYJdpOQUiT1VCABMIBEFglAR0EBpkYKhKAAodHAAfNEx9UqCoAEoAbQBdRSIklLTkGAkEMGBM5G44Kj4jAB4AFQA+fLBKUerKMGRgKmRR5AgAD0gQBOXcdopkCSj5ZCVkAH4V5BMIADcreKIMrIWoHABeHKgoADoYUAS+X6gyM1QAhIxkAB6KFlbDIUo6fSAHg3AJH7j0IHRAXR6IGQCXQQwBwwACmtNhBtst8nxKLYAJ7VZDvcbIcyYQQQWyTAAOUAgCWACDgkEoJKZBBI-LAYigeNyfwB+T5AqFIog1Q88We2Sg+k+BKJ2yBAyGmHBkJhcJKcIqgWCyEAMuREIA ### 💻 Code ```ts declare const arr:...
Cannot reassign undefined to the parameter of a function parameter destructuring with default value
### 🔎 Search Terms "function parameter destructuring", "destructured parameter", "named parameter", "undefined" ### 🕗 Version & Regression Information - This is the behavior in every version I tried, and I...
# Conditional Type Narrowing #56941 * Today, we check an expression like ```ts arg === 1 ? "someString" : 37 ``` by getting the type of both branches and unioning...
# Conditional Type Narrowing #56941 * Shouldn't be any perf impact for existing code because most code doesn't actually use a conditional type as the return type of a function,...