TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
Today, we can take advantage of parameter properties to reduce the boilerplate, e.g: ``` typescript class Person { constructor(public firstName: string, public lastName: number, public age: number) { } }...
**Current behavior** In a restructuring assignment expression, when alias is renamed back to original property's name, it has the full form (`const { property: property } = testObject;` in the...
Fixes #42734 This makes it so that expressions of the form `foo?.#bar` or `foo?.bar.#baz` are no longer seen as invalid, since the relevant JavaScript standards allow these by now and...
# Bug Report ### 🔎 Search Terms TS18030 ### 🕗 Version & Regression Information v4.1.3 - This is a crash - This changed between versions ______ and _______ - This...
closes https://github.com/microsoft/TypeScript/issues/52460 closes https://github.com/microsoft/TypeScript/issues/57680 closes https://github.com/microsoft/TypeScript/issues/57777 Currently, this only has tests based on https://github.com/microsoft/TypeScript/pull/55015 but I still have to add more
## Search Terms type-only import ## Suggestion The new type-only import syntax supports most variations of `import` statement but not this one: `import type 'mod'` It may seem stupid because...
# Suggestion ## 🔍 Search Terms - quickInfo - markdown - link - relative path - jsdoc ## ⭐ Suggestion On VS Code, we have a long standing feature request...
Fixes #60050 This PR improves the diagnostic message for unsupported `lib` or `target` values by emitting a specialized message when the specified value looks like a future ES version. I...
### 🔎 Search Terms no infer discriminate union ### 🕗 Version & Regression Information Tested on version 5.6.3 ### ⏯ Playground Link https://www.typescriptlang.org/play/?#code/JYOwLgpgTgZghgYwgAgILIN4ChnLATwAcIAuZAcjnIBodkA3OAGwFdTkBnMKUAcwG4sAXyxZQkWIhQAhTHQLEy5AEY06HYAC92IFgFtl0QSKwKUAVRDAA9iGQBeNMgA+yaYKwwWIBGBt3EJEIwAB4AFWQIAA9IEAATDmRLfwA+AApvfzIAOWsASRAYaHCUgEo5YVFAiGC0jDMlKiFSoA ### 💻 Code ```ts interface A {...