Returns ((object, throwOnError?, log?) => object is T)
a function that validates an object against the schema.
- (object, throwOnError?, log?): object is T
Parameters
- object: unknown
Optional throwOnError: booleanOptional log: ILogger
Returns object is T
Create a validator function for a given schema.