---
title: boolean
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/data-schema/src/lib/schema.ts#L437
---

# boolean

## Summary

Create a schema that accepts booleans.

## Signature

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

```

## Returns

A schema that produces a `boolean`