MCPcopy Index your code
hub / github.com/Effect-TS/effect / asEffect

Function asEffect

packages/effect/test/Schema/ParseResult.test.ts:16–16  ·  view source on GitHub ↗
(either: Either.Either<A, E>)

Source from the content-addressed store, hash-verified

14import { inspect } from "node:util"
15
16const asEffect = <A, E>(either: Either.Either<A, E>): Effect.Effect<A, E> => either
17
18const expectGetRefinementExpected = (schema: S.Schema.Any, expected: string) => {
19 if (AST.isRefinement(schema.ast)) {

Callers 1

Calls

no outgoing calls

Tested by

no test coverage detected