TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
Type: Bug I was trying to copy some JavaScript functions to a new file using Refactor. I clicked **Move to file** and got the following notification: ``` TypeScript Server Error...
### 🔎 Search Terms "destructuring", "record" ### 🕗 Version & Regression Information - This is the behavior in every version I tried, and I reviewed the FAQ. ### ⏯ Playground...
original issue: #27024 > ## Search Terms > * Type System > * Equal > > ## Suggestion > ```ts > T1 == T2 > ``` > > ## Use...
This is a proposal in order to simplify the way we have to deal with type guards in TypeScript in order to enforce the type inference. The use case is...
### 🔎 Search Terms jsx namespace identifier attribute name js docs quick info language service completion documentation ### 🕗 Version & Regression Information - Verified on TS 5.x and VSCode...
### 🔍 Search Terms conditional type detect callable type parameter ### ✅ Viability Checklist - [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code - [x] This wouldn't...
## Search Terms abstract optional override ## Suggestion If in abstract class abstract property is marked as optional, allow child classes not to implement it. So I suggest to remove...
Fixes #61547 I'm aware that the underlying issue is (currently) labeled "not a defect", however, the behavior is undeniably strange, most likely simply [overlooked when exactOptionalPropertyTypes was implemented](https://github.com/microsoft/TypeScript/pull/43947#discussion_r2080730989), in my...
Fixes #17473 - Infer constrained generic parameters after instanceof check Fixes #46668 - Private field check narrows generic class too far This is an updated and ready-to-be-reviewed recreation of my...
### 🔎 Search Terms String.prototype.apply I found #33173, but the issue was closed without a reason. The problem still persists. ### 🕗 Version & Regression Information At least since v3.3.3...