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

Function fromIssueEffect

packages/effect/src/Schema.ts:1516–1523  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, SchemaIssue.Issue, R>
)

Source from the content-addressed store, hash-verified

1514}
1515
1516function fromIssueEffect<A, R>(
1517 self: Effect.Effect<A, SchemaIssue.Issue, R>
1518): Effect.Effect<A, SchemaError, R> {
1519 return Effect.catchCause(
1520 self,
1521 (cause) => Effect.failCauseSync(() => Cause_.map(cause, (issue) => new SchemaError(issue)))
1522 )
1523}
1524
1525/**
1526 * Decodes a typed input (the schema's `Encoded` type) against a schema,

Callers 2

decodeUnknownEffectFunction · 0.85
encodeUnknownEffectFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected