Do type check of function parameters #45
Labels
Feature Enhancement
Enhancing an existing feature driven by business requirements. Typically backwards compatible.
released on @0.24.x
released
Ideally we need to ensure the type is correct although in Javascript type check is tricky.
Here is an example how we do it currently: https://github.com/hashgraph/solo/blob/main/src/commands/base.mjs#L35
In addition to
null
check as above, we have to useinstanceof
andtypeof
to ensure the type of the arguments similar to how we usually to it in Java.We shall need to update the doc block so that class docs are generated correctly, so this has dependency on: #39
The text was updated successfully, but these errors were encountered: