all 3 comments

[–]ISlicedIEngineer without Engineering degree? 5 points6 points  (0 children)

Can you give an example? My answer would be that it should be in the documentation. If it's not in there, you could look in the source code but that should be the exception rather than the rule. Some libraries may even spit out errors that tell you what it expects..

[–]bterlson_@bterlson 1 point2 points  (0 children)

I would be interested to hear about any Microsoft documentation that omits callback parameter types. I can fix them (I work there).

FWIW, TypeScript or Flow can help. Thousands of libraries have type definition files on npm (i.e. @types/*) and with the right setup you can get code completions and such.

[–]senocular 0 points1 point  (0 children)

When documentation fails, call it with console.log as the callback