4 ms·
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.
by Ycros 11y ago
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.
- scotty79 11y agoI 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`.