3 ms·
A question for developers, what are your tips for checking function params?
When I am writing callbacks often there are quite a few levels of functions calling functions. No problem there.
However I am often finding bugs because the arguments expected in the calling and called functions do not match i.e. I have forgotten to include an argument, or they in the incorrect order.
I'm spending alot of time manually eyeballing the calling and called function signatures to verify them.
This is time consuming and even then not super accurate.
What are your developer pro-tips for verifying function arguments match?
- cjbprime 11y agohttp://flowtype.org/ http://flowtype.org/ or TypeScript