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

Function api

packages/effect/typeperf/compare/httpapi.mjs:36–44  ·  view source on GitHub ↗
(count, options = {})

Source from the content-addressed store, hash-verified

34type IsNever<T> = [T] extends [never] ? true : false`
35
36const api = (count, options = {}) => {
37 const groupIdentifier = options.groupIdentifier ?? "users"
38 const topLevel = options.topLevel === true ? ", { topLevel: true }" : ""
39 return `const api = HttpApi.make("Api").add(
40 HttpApiGroup.make("${groupIdentifier}"${topLevel}).add(
41${endpoints(count)}
42 )
43)`
44}
45
46const endpointDeclarationFixture = (count) => `// Compares endpoint declaration for ${count} same-shaped endpoints.
47${imports()}

Callers 6

clientMethodsFixtureFunction · 0.85
clientEndpointFixtureFunction · 0.85
urlBuilderFixtureFunction · 0.85
builderEndpointFixtureFunction · 0.85

Calls 1

endpointsFunction · 0.85

Tested by

no test coverage detected