boolean

View Source

Summary

Create a schema that accepts booleans.

Signature

function boolean(): Schema<unknown, boolean>;

Returns

A schema that produces a boolean