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

Function toIssueEffect

packages/effect/src/Schema.ts:5819–5823  ·  view source on GitHub ↗
(
  self: Effect.Effect<A, SchemaError, R>
)

Source from the content-addressed store, hash-verified

5817}
5818
5819function toIssueEffect<A, R>(
5820 self: Effect.Effect<A, SchemaError, R>
5821): Effect.Effect<A, SchemaIssue.Issue, R> {
5822 return Effect.catchCause(self, (cause) => Effect.failCauseSync(() => Cause_.map(cause, (error) => error.issue)))
5823}
5824
5825/**
5826 * Type-level representation returned by {@link withDecodingDefaultKey}.

Callers 2

withDecodingDefaultKeyFunction · 0.85
withDecodingDefaultFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected