TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
### 🔎 Search Terms ClassDecoratorContext static name ### 🕗 Version & Regression Information 5.0.4-5.9.3 ### ⏯ Playground Link https://tsplay.dev/N7vAow ### 💻 Code ```ts const decorate = (_: unknown, ctx: ClassDecoratorContext)...
# Overview With TypeScript 7.0, we have no plans to port over our downleveling from ES2015/ES6 to ES5. ECMAScript 5 was a stable and broad target that seemed like the...
### ⚙ Compilation target esnext ### ⚙ Library ESNext ### Missing / Incorrect Definition [`Intl.Locale.prototype.getWeekInfo()`](https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl/Locale/getWeekInfo) of the [Intl Locale Info API](https://tc39.es/proposal-intl-locale-info/) is missing. The method is available in multiple major...
In TypeScript 1.5, we introduced the `namespace` keyword so people could stop distinguishing between "internal modules" and "external modules". This allowed developers to more clearly say * "namespaces" in place...
**TypeScript Version:** 3.1.5 **Search Terms:** indexedDB **Code** ```ts let dbreq = indexedDB.open('test', 1); dbreq.onsuccess = function (evt) { let database = evt.target.result; } ``` **Expected behavior:** `evt.target.result` should be an...
# Feature Update: Numeric Ranges This is a [Feature Update](https://github.com/microsoft/TypeScript/issues/54923) for #15480. ## What's the Proposal? The general idea is that you'd be able to write a type which represents...
Pulling in the latest since a bunch changed.
This is https://github.com/microsoft/typescript-go/pull/1604 but here.
### 🔎 Search Terms typeroots triple slash directives ordering ### 🕗 Version & Regression Information - This is the behavior in every version I tried, and I reviewed the FAQ...
Fixes #62487