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

Function makeProto

packages/effect/src/unstable/rpc/RpcGroup.ts:387–394  ·  view source on GitHub ↗
(options: {
  readonly requests: ReadonlyMap<string, Rpcs>
  readonly annotations: Context.Context<never>
})

Source from the content-addressed store, hash-verified

385}
386
387const makeProto = <Rpcs extends Rpc.Any>(options: {
388 readonly requests: ReadonlyMap<string, Rpcs>
389 readonly annotations: Context.Context<never>
390}): RpcGroup<Rpcs> =>
391 Object.assign(function() {}, RpcGroupProto, {
392 requests: options.requests,
393 annotations: options.annotations
394 }) as any
395
396/**
397 * Creates an `RpcGroup` from one or more RPC definitions.

Callers 9

addFunction · 0.70
mergeFunction · 0.70
omitFunction · 0.70
middlewareFunction · 0.70
prefixFunction · 0.70
annotateFunction · 0.70
annotateMergeFunction · 0.70
annotateRpcsMergeFunction · 0.70
makeFunction · 0.70

Calls 1

assignMethod · 0.80

Tested by

no test coverage detected