copilot-swe-agent[bot] b3bebe391d Fix isolated declarations to not flag function expressions in call arguments
Function expressions and arrow functions used as arguments to function calls were incorrectly being flagged for needing explicit return type annotations with --isolatedDeclarations. This change modifies the logic in expressionToTypeNode.ts to skip inference fallback reporting for function expressions that are direct arguments to call expressions.

The fix addresses the underlying issue by checking if the function expression's parent is a CallExpression and passing reportFallback=false in those cases, preventing the inference fallback error from being generated in the first place.

Fixes #62085

Co-authored-by: jakebailey <5341706+jakebailey@users.noreply.github.com>
2025-07-25 18:23:15 +00:00
2015-07-27 10:07:07 -07:00
2015-03-02 14:38:24 -08:00
2014-07-12 17:30:19 -07:00
2025-01-08 15:15:35 -08:00
2023-10-05 10:36:20 -07:00

TypeScript

CI npm version Downloads OpenSSF Scorecard

TypeScript is a language for application-scale JavaScript. TypeScript adds optional types to JavaScript that support tools for large-scale JavaScript applications for any browser, for any host, on any OS. TypeScript compiles to readable, standards-based JavaScript. Try it out at the playground, and stay up to date via our blog and Twitter account.

Find others who are using TypeScript at our community page.

Installing

For the latest stable version:

npm install -D typescript

For our nightly builds:

npm install -D typescript@next

Contribute

There are many ways to contribute to TypeScript.

This project has adopted the Microsoft Open Source Code of Conduct. For more information see the Code of Conduct FAQ or contact opencode@microsoft.com with any additional questions or comments.

Documentation

Roadmap

For details on our planned features and future direction, please refer to our roadmap.

Description
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
Readme 5.3 GiB
2025-07-30 13:28:01 -05:00
Languages
TypeScript 97.9%
jsonc 2%
JavaScript 0.1%