Yet another validation lib ;). Provides tools for general-purpose variable validation, function inputs/outputs validation as well as class fields validation. All entry points raise consistent ValidationError including all contextual details, with dynamic inheritance of ValueError/TypeError as appropriate.
Is function really (callback) asynchronous function? Trying to guess that based on check if `common-callback-names` exists as function arguments names or you can pass your custom.
Currently, help functions accept any array of strings. It would be nice if help parameter can be narrowed down to specific union of string tuples.
For example: Let's say our application supports a main command and 3 subcommands which are foo, bar, and bar baz, then type of cmdPath parameter of help of main command should be [] | ['foo'] | ['bar'] | ['bar', 'baz']
Currently,
helpfunctions accept any array of strings. It would be nice ifhelpparameter can be narrowed down to specific union of string tuples.For example: Let's say our application supports a main command and 3 subcommands which are
foo,bar, andbar baz, then type ofcmdPathparameter ofhelpof main command should be[] | ['foo'] | ['bar'] | ['bar', 'baz']