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

Function add

packages/effect/src/unstable/httpapi/HttpApi.ts:141–153  ·  view source on GitHub ↗
(
    this: Top,
    ...toAdd: NonEmptyReadonlyArray<HttpApiGroup.Top>
  )

Source from the content-addressed store, hash-verified

139 return pipeArguments(this, arguments)
140 },
141 add(
142 this: Top,
143 ...toAdd: NonEmptyReadonlyArray<HttpApiGroup.Top>
144 ) {
145 const groups = { ...this.groups }
146 for (const group of toAdd) {
147 InternalRecord.assignProperty(groups, group.identifier, group)
148 }
149 return makeProto({
150 ...optionsFromApi(this),
151 groups
152 })
153 },
154 addHttpApi(
155 this: Top,
156 api: Top

Callers

nothing calls this directly

Calls 6

optionsFromApiFunction · 0.85
pushMethod · 0.80
makeProtoFunction · 0.70
getMethod · 0.65
setMethod · 0.65
getStatusFunction · 0.50

Tested by

no test coverage detected