Validator {(...args: any) => boolean}

Validator {(...args: any) => boolean}()

Type: Function

inputValidation

A decorator configurable to validate the param type of a function

inputValidation
Parameters
config (object) config options
Name Description
config.validator Validator The validation method
Returns
Function: The decorated

index

An example function just to show the build and ci pipeline works.

index(args: ...any): string
Parameters
args (...any)
Returns
string: Hello world.

join

Join two strings with a space.

join
Parameters
a (string) The first param.
b (string) The second param.
Returns
string: The result.

allStrings

An example function to show JSDoc works with object destruction in function params.

allStrings
Parameters
args (...any)