MCPcopy Create free account
hub / github.com/Effect-TS/effect / check

Function check

packages/effect/src/Schema.ts:5122–5126  ·  view source on GitHub ↗
(
  ...checks: readonly [SchemaAST.Check<S["Type"]>, ...Array<SchemaAST.Check<S["Type"]>>]
)

Source from the content-addressed store, hash-verified

5120 * @since 4.0.0
5121 */
5122export function check<S extends Top>(
5123 ...checks: readonly [SchemaAST.Check<S["Type"]>, ...Array<SchemaAST.Check<S["Type"]>>]
5124) {
5125 return (self: S): S["Rebuild"] => self.check(...checks)
5126}
5127
5128/**
5129 * Type-level representation returned by {@link refine}.

Callers 1

Schema.tsFile · 0.70

Calls 1

checkMethod · 0.65

Tested by

no test coverage detected