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

Function fromChecks

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

Source from the content-addressed store, hash-verified

307 * @since 4.0.0
308 */
309export function fromChecks<T>(...checks: readonly [SchemaAST.Check<T>, ...Array<SchemaAST.Check<T>>]): Prism<T, T> {
310 return make([new CheckNode(checks)])
311}
312
313type Kind = "Iso" | "Lens" | "Prism" | "Optional"
314

Callers

nothing calls this directly

Calls 1

makeFunction · 0.70

Tested by

no test coverage detected