vtils

Home > react > useValidator

useValidator() function

Signature:

export declare function useValidator<T>(data: T, dataDeps: DependencyList, schema: UseValidatorSchema<T>, schemaDeps?: DependencyList): UseValidatorResult<T>;

Parameters

Parameter Type Description
data T  
dataDeps DependencyList  
schema UseValidatorSchema<T>  
schemaDeps DependencyList (Optional)

Returns:

UseValidatorResult<T>