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

Function fromIssueExit

packages/effect/src/Schema.ts:1629–1633  ·  view source on GitHub ↗
(exit: Exit_.Exit<A, SchemaIssue.Issue>)

Source from the content-addressed store, hash-verified

1627}
1628
1629function fromIssueExit<A>(exit: Exit_.Exit<A, SchemaIssue.Issue>): Exit_.Exit<A, SchemaError> {
1630 return Exit_.isSuccess(exit)
1631 ? exit as unknown as Exit_.Exit<A, SchemaError>
1632 : Exit_.failCause(Cause_.map(exit.cause, (issue) => new SchemaError(issue)))
1633}
1634
1635/**
1636 * Decodes a typed input (the schema's `Encoded` type) against a schema

Callers 2

decodeUnknownExitFunction · 0.85
encodeUnknownExitFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected