Giant Assertion

Giant assertion is a namespace which gives us functionality to implement validation via giant. There are different function available by which we can add our own custom validator. the default available functions are

assert:- Asserts an expression. check if expression is valid otherwise throws assertion error.

addType:- For adding up new validator.

addTypes:- For adding multiple validator at one go.

customHandler:- For global handler

 

 

Leave a Reply

Your email address will not be published. Required fields are marked *