3 ms·
Yes, I really wish that simple arrow functions were inferred for that reason. I've implemented a proof-of-concept[1], but I don't see it being added to the comp
by benschulz 8y ago
Yes, I really wish that simple arrow functions were inferred for that reason. I've implemented a proof-of-concept[1], but I don't see it being added to the compiler any time soon. It's a shame because it would make a lot of my code more robust.
[1]: https://github.com/Microsoft/TypeScript/issues/10734#issuecomment-351570480 https://github.com/Microsoft/TypeScript/issues/10734#issueco...