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

Method check

packages/effect/src/Optic.ts:1018–1020  ·  view source on GitHub ↗
(...checks: readonly [SchemaAST.Check<any>, ...Array<SchemaAST.Check<any>>])

Source from the content-addressed store, hash-verified

1016 )
1017 }
1018 check(...checks: readonly [SchemaAST.Check<any>, ...Array<SchemaAST.Check<any>>]): any {
1019 return make(compose(this.node, [new CheckNode(checks)]))
1020 }
1021 refine<B extends A>(refinement: (a: A) => a is B, annotations?: Schema.Annotations.Filter): any {
1022 return make(compose(this.node, [new CheckNode([SchemaAST.makeFilterByGuard(refinement, annotations)])]))
1023 }

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
composeFunction · 0.70

Tested by

no test coverage detected