Skip to content

クライアント API リファレンス ​

@uuki/schemable-validator-client は4つのエクスポートグループを持ちます。

インポートパス内容
@uuki/schemable-validator-clientvalidateObject、Result プリミティブ、Constraint パイプライン、スキーマ型
@uuki/schemable-validator-client/zodsv、createSv、toZodSchema、checkZodSchema、型エクスポート
@uuki/schemable-validator-client/valibotsv、createSv、toValibotSchema、checkValibotSchema、型エクスポート

ページ内容
コアバリデーターvalidateObject、isAllValid、extractErrors
Result プリミティブok、err、isOk、isErr、map、flatMap、mapErr、getOrElse
Constraint パイプラインconstraintsFromSchema、composeConstraints、各 Constraint ファクトリー、PATTERN_MAX_INPUT_LENGTH
Zod アダプターsv、createSv、ZodRefiner、ZodAsyncRefiner、toZodSchema、checkZodSchema
Valibot アダプターsv、createSv、ValibotRefiner、ValibotAsyncRefiner、toValibotSchema、checkValibotSchema
型リファレンスObjectSchema、PropertySchema、WhenCondition、FieldResult、FieldState、Constraint