-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Description
π Search Terms
"5.8.2", "dts", "d.ts", "static", "generic"
π Version & Regression Information
- This changed between versions 5.7.3 and 5.8.2
β― Playground Link
π» Code
export abstract class A<T = any, U = any> {
public static readonly Fn = <T, U = any>(value: T): A<T, U> => {
return null as any
}
}
π Actual behavior
Outputs d.ts(5.8.2):
export declare abstract class A<T = any, U = any> {
static readonly Fn: <T, U = any>(value: T_1) => A<T_1, U_1>;
}
π Expected behavior
Outputs d.ts(5.7.3):
export declare abstract class A<T = any, U = any> {
static readonly Fn: <T_1, U_1 = any>(value: T_1) => A<T_1, U_1>;
}
Additional information about the issue
No response
tchetwin
Metadata
Metadata
Assignees
Labels
BugA bug in TypeScriptA bug in TypeScript