by chrismorgan · 6y ago · 0 comments
The end result is actually pretty approachable.
I think it's because there are a whole bunch of APIs in javascript where there is a function like `.get("foo")` that internally calls a function called `getFoo` or similar. And this functionality allows such functions to be accurately typed. It basically allows strong typing for stringly typed functions (which are pretty common in dynamic languages)
https://devblogs.microsoft.com/typescript/announcing-typescr...