TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
### 🔎 Search Terms silent never leak reverse mapped types nested calls return type inference ### 🕗 Version & Regression Information - This is the behavior in every version I...
### 🔎 Search Terms - The inferred type of '...' cannot be named without a reference to '...'. This is likely not portable. A type annotation is necessary. - TS2742...
### 🔎 Search Terms assignment narrowing assignment narrowing union ### 🕗 Version & Regression Information Version 6.0.0-dev and 5.9.3 ### ⏯ Playground Link https://www.typescriptlang.org/play/#code/DYUwLgBMCGDOYC4IFcB2ATEAzAlqk6EAPhPAE54DmEAvChtngQFADGA9qvBAG7TDIQtCAHIARjAAWI5syzsyEABQBuFQEoIAb2YQIHLpHwAPSHRjxdEHFmUnIAQhp0+AkJq0BfKxbO9+gsyeQA ### 💻 Code ```ts let last:...
Does this issue occur when all extensions are disabled?: Yes/No - VS Code Version: 1.106.3 - OS Version: Windows 10 22H2 Steps to Reproduce: 1. Ensure `javascript.suggest.enabled` is set to...
# New `moduleResolution` options for `#/*` in `package.json`'s `imports` https://github.com/microsoft/TypeScript/pull/62844 * Probably will merge for `bundler` and `nodenext` at first. * Backporting will *probably* go as far back as Node...
Does this issue occur when all extensions are disabled?: Yes ##### Version: 1.99.3 ##### V8: 13.2.152.41-electron.0 ##### OS: Linux x64 6.8.0-57-generic Link to Minimal Reproduction Repository: https://github.com/hosseinalipour/suggestion-reproduction.git **Problem Description:** In...
### ⚙ Compilation target es2022 ### ⚙ Library es2022, dom ### Missing / Incorrect Definition 1. User sees weird error. "Uint16Array is not assignable to Uint16Array". First thoughts: WTF? What...
it's an extension of the algorithm introduced in https://github.com/microsoft/TypeScript/pull/48538 closes https://github.com/microsoft/TypeScript/issues/53018 fixes https://github.com/microsoft/TypeScript/issues/48798
fixes https://github.com/microsoft/TypeScript/issues/60004
## Search Terms default extends equals generics = template types is ## Suggestion Can we have a way to declare that a templated (generic) type both `extends` and is `=`...