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

Function GetThing

packages/infra/test/router-generator.test.ts:93–99  ·  view source on GitHub ↗
(req)

Source from the content-addressed store, hash-verified

91
92 return match({
93 *GetThing(req) {
94 const some = yield* Some
95 if (req.id === "boom") {
96 return yield* Effect.fail(new UnauthorizedError())
97 }
98 return yield* repo.get(req.id + String(some.a))
99 },
100 *DoThing(_req) {
101 yield* Effect.succeed(1)
102 }

Callers

nothing calls this directly

Calls 3

getMethod · 0.65
StringInterface · 0.50
failMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…