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

Function group

packages/effect/typeperf/compare/httpapi.mjs:109–114  ·  view source on GitHub ↗
(groupIndex, endpointCount)

Source from the content-addressed store, hash-verified

107`
108
109const group = (groupIndex, endpointCount) => {
110 const identifier = `group${String(groupIndex).padStart(3, "0")}`
111 return ` HttpApiGroup.make("${identifier}").add(
112${endpoints(endpointCount)}
113 )`
114}
115
116const multipleGroupsApi = (groupCount, endpointCount) => `const api = HttpApi.make("Api").add(
117${Array.from({ length: groupCount }, (_, index) => group(index + 1, endpointCount)).join(",\n")}

Callers 1

multipleGroupsApiFunction · 0.70

Calls 2

endpointsFunction · 0.85
StringInterface · 0.50

Tested by

no test coverage detected