ChluNetwork / chlu-ipfs-support

Support libs to talk to IPFS
MIT License
1 stars 1 forks source link

Fail Early in function calls #105

Open fazo96 opened 6 years ago

fazo96 commented 6 years ago

We have instances where calling a top level api with undefined as a value for a required argument does not throw errors until 5 or 10 levels deep in the stack.

High level APIs (at module level and most importantly at top level) should perform strict type checking on the arguments and options

This would help a lot with debugging applications that use this library and also the library itself