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
Since v3.0 update, defining generic rest parameters is possible. The, how about adding generic parameters in the Function type and related features?
By the implementation, specifying those methods' types are possible (who've handled only any type):
Function.apply clearly.
Function.bind maybe?
interfaceFunction<Ret=any,Paramsextendsany[]=any>{// It's possible to specifying types of return and parameters.apply(thisArg: any,args: Params): Ret;// Well, I don't know the solution... but it seems possible maybe...bind<T>(thisArg: any,elem: T): Function<Ret,Pop<Params,T>>;bind<Popsextend any[]>(thisArg: any, ...args: Pops): Function<Ret,Remainder<Params,Pops>>;}
The text was updated successfully, but these errors were encountered:
Since v3.0 update, defining
generic rest parameters
is possible. The, how about adding generic parameters in theFunction
type and related features?By the implementation, specifying those methods' types are possible (who've handled only
any
type):Function.apply
clearly.Function.bind
maybe?The text was updated successfully, but these errors were encountered: