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

Method addHttpApi

packages/effect/src/unstable/httpapi/HttpApi.ts:86–86  ·  view source on GitHub ↗

* Adds every group from another `HttpApi` while preserving its annotation scope. * * **When to use** * * Use when you want to compose an API from groups declared and annotated under another API. * * **Details** * * The added API is flattened into this API rather than retained

(
    api: HttpApi<Id2, Groups2>
  )

Source from the content-addressed store, hash-verified

84 * groups already present in this API. They remain scoped to the groups and endpoints being added.
85 */
86 addHttpApi<Id2 extends string, Groups2 extends HttpApiGroup.Constraint>(
87 api: HttpApi<Id2, Groups2>
88 ): HttpApi<Id, Groups | Groups2>
89

Callers 3

HttpApi.test.tsFile · 0.80
ApiClass · 0.80
HttpApi.test.tsFile · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected