4 ms·
This is only a typescript definition. It only shows you the types that were already there - even before typescript was introduced. And if the JS developer was n
by Matthias247 11y ago
This is only a typescript definition. It only shows you the types that were already there - even before typescript was introduced. And if the JS developer was not aware that these are the accepted types for the functions then he obviously wouldn't also be able to use or debug it in pure JS.
- dmethvin 11y agoRight, for the human there are still the English API docs to figure out the arguments and return values. These are the type annotations that TypeScript uses to let you know when you've misinterpreted the API docs, which is an incredible time saver.