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

Function fromIssueExit

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

Source from the content-addressed store, hash-verified

1283}
1284
1285function fromIssueExit<A>(exit: Exit_.Exit<A, SchemaIssue.Issue>): Exit_.Exit<A, SchemaError> {
1286 return Exit_.isSuccess(exit)
1287 ? exit as unknown as Exit_.Exit<A, SchemaError>
1288 : Exit_.failCause(Cause_.map(exit.cause, (issue) => new SchemaError(issue)))
1289}
1290
1291function getSchemaErrorOrThrow(
1292 cause: Cause_.Cause<SchemaError>,

Callers 3

fromIssueEffectFunction · 0.85
decodeUnknownExitFunction · 0.85
encodeUnknownExitFunction · 0.85

Calls 1

mapMethod · 0.45

Tested by

no test coverage detected