TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
### 🔎 Search Terms * generic * constraint * higher order generic * higher order generic function * constraint generic ### 🕗 Version & Regression Information - This is the...
Fixes #33014. Fixes #33912. This PR brings back conditional and indexed access return type narrowing from #56941, but with a few updates. The main motivation behind those updates is described...
### 🔎 Search Terms iteration yield iterator symbol generic call inference ### 🕗 Version & Regression Information - This is the behavior in every version I tried ### ⏯ Playground...
### 🔍 Search Terms class satisfies ### ✅ Viability Checklist - [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code - [x] This wouldn't change the runtime behavior...
### 🔎 Search Terms instantiable contextual signature return types ### 🕗 Version & Regression Information - This is the behavior in every version I tried ### ⏯ Playground Link https://www.typescriptlang.org/play/?ts=5.8.0-dev.20250216#code/C4TwDgpgBAwg9gO2BAHsAysAhsgzlAXgCgooAfKAbxNNt22AFdcAuKAIgBs4sATASwQBzdgG4atKLxxY2CRp07jJAXxoVqk0vRzM27XIwDGRiLlxiJtadjb0AToKHLaK8UV4QjnLPegAzRgQjYH5EKCM-HAhMOD8AHgAVeCRUYAA+AAoaI0RkNDZkvLSAGhzEf34hNk1aRDYAJS843niHJxKoTJCUQpT84ABKQnSoItS0dJcVMsG2ADc4fl53XIR6KHo46AIIqORYv2zSWu0GPQ5uPid2MskbWSh5RTuoFSgsfH60zGjcV9OUHqVCspH8EGARgAFmxMsMCKNMoDJDomKwOIYTGYLK8tFIZPooRBFHBbqC3oNcW9XjMiINxEA...
### 🔎 Search Terms "intellisense template literal", "intellisense property union" ### 🕗 Version & Regression Information - This is the behavior in every version I tried (v4.9.5, v5.8.2) ### ⏯...
### 🔍 Search Terms "typescript github jsx setter type" Related: - https://github.com/microsoft/TypeScript/issues/60162 (however that issue is for mapped types in general, while this one is for fixing how TypeScript's internal...
### 🔍 Search Terms readonly target library ### ✅ Viability Checklist - [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code - [x] This wouldn't change the runtime...
This is an experiment to access the impact of disallowing the merging of `enum` declarations.
Corsa is strict about this, so tests break in weird ways due to these random trailing commas/comments. Be strict here, then fix the tests.