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
quite often i run into a situation were i need a reference to a generic function to be pre-filled with some type arguments, example:
declarefunctiontoArrayOf<T>(): T[];declarefunctionfn<T>(make: ()=>T): void;// currently it takesfn(()=>[]asstring[]);// i wish, i could dofn(toArrayOf<string>);// <-- a reference to a generic function pre-filled with type arguments
The text was updated successfully, but these errors were encountered:
zpdDG4gta8XKpMCd
changed the title
allow type bound function references
allow type bound function references and classes and values
Mar 24, 2019
quite often i run into a situation were i need a reference to a generic function to be pre-filled with some type arguments, example:
The text was updated successfully, but these errors were encountered: