string

string()

作用

获取string类型schema对象。

参数

示例

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

最后更新于