MCPcopy
hub / github.com/Effect-TS/effect / runEffect

Function runEffect

packages/cli/test/Args.test.ts:14–16  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, E, NodeContext.NodeContext>
)

Source from the content-addressed store, hash-verified

12import * as Schema from "effect/Schema"
13
14const runEffect = <E, A>(
15 self: Effect.Effect<A, E, NodeContext.NodeContext>
16): Promise<A> => Effect.provide(self, NodeContext.layer).pipe(Effect.runPromise)
17
18describe("Args", () => {
19 it("validates an valid argument with a default", () =>

Callers

nothing calls this directly

Calls 2

pipeMethod · 0.65
provideMethod · 0.65

Tested by

no test coverage detected