vtils

Home > validator > yup > boolean

yup.boolean() function

Signature:

export declare function boolean<T extends boolean = boolean>(payload?: (schema: BooleanSchema<T>) => BooleanSchema<T>): BooleanSchema<T>;

Parameters

Parameter Type Description
payload (schema: BooleanSchema<T>) => BooleanSchema<T> (Optional)

Returns:

BooleanSchema<T>