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

Function handlerCall

packages/effect/typeperf/compare/httpapi.mjs:214–218  ·  view source on GitHub ↗
(index, raw)

Source from the content-addressed store, hash-verified

212`
213
214const handlerCall = (index, raw) => ` .${raw ? "handleRaw" : "handle"}("${endpointIdentifier(index)}", ({ params }) =>
215 Effect.succeed({
216 id: String(params.id),
217 name: "Ada"
218 }))`
219
220const handlersFixture = (count, raw = false) => `// Compares chained builder ${raw ? "handleRaw" : "handle"} registration for ${count} same-shaped endpoints.
221${imports({ builder: true, effect: true })}

Callers 1

handlersFixtureFunction · 0.85

Calls 1

endpointIdentifierFunction · 0.85

Tested by

no test coverage detected