> For the complete documentation index, see [llms.txt](https://racoon-js.gitbook.io/zh/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://racoon-js.gitbook.io/zh/jie-kou-shuo-ming/boolean.md).

# boolean

boolean()

## 作用

获取`boolean`类型`schema`对象。

## 参数

无

## 示例

```javascript
const schema = racoon.boolean();
schema.validate(1); // fail
schema.validate(true); // pass
schema.validate(false); // pass
```
