> 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/string.md).

# string

string()

## 作用

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

## 参数

无

## 示例

```javascript
const schema = racoon.string();
schema.validate(123); // fail
schema.validate('abc'); // pass
```
