Package: effect
Module: Schema
Attaches one or more filter checks to a schema without changing the TypeScript type.
Example (Adding checks to a schema)
import { Schema } from "effect"
const AgeSchema = Schema.Finite.pipe(
Schema.check(Schema.isGreaterThanOrEqualTo(0), Schema.isLessThanOrEqualTo(120))
)
Signature
declare const check: <S extends Top>(checks_0: SchemaAST.Check<S["Type"]>, ...checks: Array<SchemaAST.Check<S["Type"]>>) => (self: S) => S["Rebuild"]
Since v4.0.0