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

Method check

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

Source from the content-addressed store, hash-verified

1031 )
1032 }
1033 check(...checks: readonly [SchemaAST.Check<any>, ...Array<SchemaAST.Check<any>>]): any {
1034 return make(compose(this.node, [new CheckNode(checks)]))
1035 }
1036 refine<B extends A>(refinement: (a: A) => a is B, annotations?: Schema.Annotations.Filter): any {
1037 return make(compose(this.node, [new CheckNode([SchemaAST.makeFilterByGuard(refinement, annotations)])]))
1038 }

Callers

nothing calls this directly

Calls 2

makeFunction · 0.70
composeFunction · 0.70

Tested by

no test coverage detected