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

Function makeStandardResult

packages/effect/src/Schema.ts:151–152  ·  view source on GitHub ↗
(exit: exit_.Exit<StandardSchemaV1.Result<A>>)

Source from the content-addressed store, hash-verified

149}
150
151const makeStandardResult = <A>(exit: exit_.Exit<StandardSchemaV1.Result<A>>): StandardSchemaV1.Result<A> =>
152 exit_.isSuccess(exit) ? exit.value : makeStandardFailureResult(cause_.pretty(exit.cause))
153
154const makeStandardFailureResult = (message: string): StandardSchemaV1.FailureResult => ({
155 issues: [{ message }]

Callers 1

validateMethod · 0.85

Calls 1

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…