MCPcopy Create free account
hub / github.com/effect-app/libs / unsafeRight

Function unsafeRight

packages/effect-app/src/utils.ts:31–37  ·  view source on GitHub ↗
(ei: Result.Result<A, E>)

Source from the content-addressed store, hash-verified

29}
30
31export const unsafeRight = <E, A>(ei: Result.Result<A, E>) => {
32 if (Result.isFailure(ei)) {
33 console.error(ei.failure)
34 throw ei.failure
35 }
36 return ei.success
37}
38
39export const unsafeSome = (makeErrorMessage: () => string) => <A>(o: Option.Option<A>) => {
40 if (Option.isNone(o)) {

Callers

nothing calls this directly

Calls 1

errorMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…