TypeScript
TypeScript copied to clipboard
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
closes https://github.com/microsoft/TypeScript/issues/51612
closes https://github.com/microsoft/TypeScript/issues/56241
This PR introduces a method to narrow the types of destructured variables through control flow analysis without relying on the discriminant member. When the initializer of the `ObjectBindingPattern` is available,...
### 🔍 Search Terms All searched terms "jest" "mock" "vitest" "filename" "rename" (this is NOT a rename default export when file name changes request) ### ✅ Viability Checklist - [x]...
### Acknowledgement - [x] I acknowledge that issues using this template may be closed without further explanation at the maintainer's discretion. ### Comment I'm authoring a package with ``` "type":...
# Suggestion ## 🔍 Search Terms inference, reverse mapped types, schema ## ✅ Viability Checklist My suggestion meets these guidelines: * [x] This wouldn't be a breaking change in existing...
Fixes https://github.com/vuejs/language-tools/issues/4582 In `getNewImportFixes`, prioritize checking scriptKind over file extension for `isJs`. This ensures consistent `JsdocTypeImport` behavior for file types added via LS plugins.
There have been a few issues with `"includePackageJsonAutoImports": "auto"` recently. Today, we scan your project's package.json for dependencies not yet included in your TS program, scanning those dependencies' package.jsons for...
Fixes #62706 ## Problem Import path completions were missing for package.json exports using wildcard patterns with file extensions. **Example:** ```json { "exports": { "./glob/path/*.js": "./build/*.js" } } ``` Typing `import...
Fixes #61524 Replace `Debug.fail()` calls with proper error generation to prevent TypeScript compiler crashes when overload resolution fails for complex generic constraints, for example JSX elements. Problem -- The TypeScript...