TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
**TypeScript Version:** 2.1.1 **Code** ```ts class Animal {} class Cat extends Animal {} class Kitten extends Cat{} function foo(a: A) { /* */ } ``` **Expected behavior:** The type parameter...
# Suggestion ## 🔍 Search Terms TS in JS, JSDoc, index signatures, class ## ✅ Viability Checklist * [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code *...
### 🔍 Search Terms Blank space ErasableSyntax Node.js Strip Types Type Stripping ### ✅ Viability Checklist - [x] This wouldn't be a breaking change in existing TypeScript/JavaScript code - [x]...
This PR introduces a new `--enforceReadonly` compiler option to enforce read-only semantics in type relations. Currently, the `readonly` modifier prohibits assignments to properties so marked, but it still considers a...
did a quick search, it looks like this hasn't been yet requested currently decorators can only be added to classes, methods and properties consider allowing them on functions too
### 🔎 Search Terms "isolatedModules" "emitDecoratorMetadata" ### 🕗 Version & Regression Information - This is the behavior in every version I tried, and I reviewed the FAQ ### ⏯ Playground...
This document outlines our focused tasks for TypeScript 5.6. It minimally indicates intent to investigate tasks or contribute to an implementation. Nothing is set in stone, but we will strive...
### 🔎 Search Terms Unable to assign window.location typescript 5.8.2 error TS2322: Type 'Location' is not assignable to type 'string & Location'. Type 'Location' is not assignable to type 'string'....
### 🔎 Search Terms control flow analysis, branch, condition ### 🕗 Version & Regression Information Tested in 5.8.2. ### ⏯ Playground Link https://www.typescriptlang.org/play/?noUncheckedIndexedAccess=true#code/JYOwLgpgTgZghgYwgAgBIFcC2cTIN4BQyycA5hAPwBcyIWARtANwEC+BBM6ICYwA9rgSCAzlggAKfvQBWNDNhABKfEWTSZAOjIoAvMm4ATCDFARDLdgWEgRYdbPlYcyfXhLkaAFgBMyVizAMMhSstrkKoTENmKYkhpKLNGi9jo0dJiMUK4OWjpMyAD0hcgAcvypuNBQ-FBsBEA ### 💻 Code ```ts interface Human {...
**Scenario**: As a user, I would like to optionally merge extended arrays in `tsconfig` files. To do so, I would add a nested dot array `["..."]` reminding spread operator to...