Re:Announcing TypeScript 1.8 Beta
by scotty79 on Friday January 29, 2016 @02:37AM
(#10994004)
I mean, when specifying function type, you can't specify type of `this` that the function expects to be run with. And `call()` expects thisArg:any, ...args:any[] for all functions regardless of their declared parameter types and expected type of `this`.
I'm talking about the usual js `this`, the covertly passed parameter, not typescript `this`, type of own class.
Funny they focused so much on classes that they reached 1.8 without so much as touching js most unique feature, flexible `this`.
I'm talking about the usual js `this`, the covertly passed parameter, not typescript `this`, type of own class.
Funny they focused so much on classes that they reached 1.8 without so much as touching js most unique feature, flexible `this`.