Function makeInstanceOfValidator
- makeInstanceOfValidator<T>(clazz): ((inputValue: unknown) => [value: T, stop: boolean])
Parameters
- clazz: (new (...args: unknown[]) => T)
- new (...args): T
Returns T
Returns ((inputValue: unknown) => [value: T, stop: boolean])
- (inputValue): [value: T, stop: boolean]
Returns [value: T, stop: boolean]
Creates a new validator function which checks whether an input value is an instance of a given class. Doesn't stop the validator chain.