-
Notifications
You must be signed in to change notification settings - Fork 13.1k
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
Description
π Search Terms
type parameters declaration rename
π Version & Regression Information
- This is the behavior in every version I tried, and I reviewed the FAQ
β― Playground Link
π» Code
class A { }
var b = <A,>(x: A) => xπ Actual behavior
Declaration file type for b is declare var b: <A_1>(x: A_1) => A_1;
π Expected behavior
Declaration file type for b should be declare var b: <A>(x: A) => A; as written in source code. There is no reason to rename the type parameter
Additional information about the issue
No response
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