const validator = getValidatorFunction<MyType>();const errors: ValidationErrorItem[] = [];const valid = validator(data, {errors})if (errors.length) console.log(errors); //validation failed if not empty
Optional
Generated using TypeDoc