Skip to content

Boolean

Example

import * as p from '@vbudovski/paseri';
const schema = p.boolean();
const data = true;
const result = schema.safeParse(data);
if (result.ok) {
// result.value typed as `boolean`.
}

Playground

Schema
Data
Result