Home > validator > yup > boolean
Signature:
export declare function boolean<T extends boolean = boolean>(payload?: (schema: BooleanSchema<T>) => BooleanSchema<T>): BooleanSchema<T>;
Parameter | Type | Description |
---|---|---|
payload | (schema: BooleanSchema<T>) => BooleanSchema<T> | (Optional) |
Returns: