You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is there any way to specialize an generic interface.
Examples
interfaceGen<T>{method1(): void}// not use '='? it is a break changeinterfaceGen<T=number>{method2(): void}letv1={}asGen<string>v1.method1()// correct , Gen<string> has method1v1.method2()// error, Gen<string> does not has method2letv2={}asGen<number>v1.method2()// correct , Gen<string> has method2
The text was updated successfully, but these errors were encountered:
Automatically closing this issue for housekeeping purposes. The issue labels indicate that it is unactionable at the moment or has already been addressed.
Is there any way to specialize an generic interface.
Examples
The text was updated successfully, but these errors were encountered: