vtils

Home > vae > VaeSchema > custom

VaeSchema.custom() method

Signature:

custom(fn: (value: T) => boolean | void, messageOrOptions?: VaeLocaleMessage | {
        message?: VaeLocaleMessage;
        path?: DotPath<T>;
        tag?: string;
    }): this;

Parameters

Parameter Type Description
fn (value: T) => boolean | void  
messageOrOptions VaeLocaleMessage | { message?: VaeLocaleMessage; path?: DotPath<T>; tag?: string; } (Optional)

Returns:

this