TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
### ⚙ Compilation target es2022 ### ⚙ Library ES2023 ### Missing / Incorrect Definition Definitions for `String.{matchAll,replaceAll}` with an object that implements `[Symbol.matchAll]`/`[Symbol.replace]`, rather than a pure RegExp. ### Sample...
### 🔎 Search Terms **Steps to reproduce:** ```sh mkdir typescript-5-node-14 cd typescript-5-node-14 npm i typescript @types/node@14 touch index.ts npx tsc index.ts ``` As of writing, this installs TypeScript 5.8.2 and...
# Suggestion As a professional TypeScript developer, I start new TS projects all the time. I use `tsc --init` sometimes, but more often than not I copy `tsconfig.json` files from...
## Search Terms export access modifiers public protected private Related: #321 ## Suggestion Allow adding `public`, `protected` and `private` access modifiers to export statements. This would limit where the data...
After exploring the concept in #23696, we've come to the conclusion that implicitly making type arguments available by name would unnecessarily expose previously unobservable implementation details. As such, I'll be...
### 🔎 Search Terms keywords: required record, partial record, assignable, incompatible types ### 🕗 Version & Regression Information - This is the behavior in every version I tried, and I...
TypeScript has two narrowing-related behaviors that are both intentional. Please do not log additional bugs on this; see #9998 for more discussion. The first is that *narrowings are not respected...
### Acknowledgement - [x] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. ### Comment The [`moduleResolution`](https://www.typescriptlang.org/docs/handbook/modules/theory.html#module-resolution) compiler option allows the following...
### 🔎 Search Terms typeToString ### 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about typeToString ###...