-
Notifications
You must be signed in to change notification settings - Fork 13.3k
Type parameters are renamed in declarationsΒ #55653
Copy link
Copy link
Closed
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issuePossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some casesSuggestionAn idea for TypeScriptAn idea for TypeScript
Metadata
Metadata
Assignees
Labels
Fix AvailableA PR has been opened for this issueA PR has been opened for this issuePossible ImprovementThe current behavior isn't wrong, but it's possible to see that it might be better in some casesThe current behavior isn't wrong, but it's possible to see that it might be better in some casesSuggestionAn idea for TypeScriptAn idea for TypeScript
π Search Terms
type parameters declaration rename
π Version & Regression Information
β― Playground Link
https://www.typescriptlang.org/play?ts=5.2.2#code/MYGwhgzhAECC0G9oF8CwAoAbmATtARtALzQA8sANAHwAUAHgFxwCUxV0dQA
π» Code
π Actual behavior
Declaration file type for
bisdeclare var b: <A_1>(x: A_1) => A_1;π Expected behavior
Declaration file type for
bshould bedeclare var b: <A>(x: A) => A;as written in source code. There is no reason to rename the type parameterAdditional information about the issue
No response