Re:Announcing TypeScript 1.8 Beta
by Ycros on Thursday January 28, 2016 @11:30PM
(#10993506)
Can you elaborate on what you mean by that? 1.7 added 'this' typing improvements, and it looks like 1.8 is adding 'this'-based type guards.
[ Parent
| on HN ]
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`.