vtils

Home > validator > yup > SchemaTestOptions

yup.SchemaTestOptions interface

Signature:

export interface SchemaTestOptions<TSchema, TValue, TParams extends {} = {}> 

Properties

Property Modifiers Type Description
exclusive?   boolean (Optional)
message   LocaleValue<TParams>  
name   string  
params?   TParams (Optional)
test   (this: { path: string; schema: TSchema; options: SchemaValidateOptions; parent: any; createError: (options: { path: string; message: LocaleValue; params?: TParams; }) => ValidationError; }, value: TValue) => boolean | Promise<boolean>