MCPcopy Create free account
hub / github.com/middleapi/orpc / handler

Method handler

packages/server/src/builder.ts:273–280  ·  view source on GitHub ↗

* Defines the handler of the procedure. * * @see https://orpc.dev/docs/procedure Procedure Docs

(
    handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>,
  )

Source from the content-addressed store, hash-verified

271 * @see {@link https://orpc.dev/docs/procedure Procedure Docs}
272 */
273 handler<UFuncOutput>(
274 handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>,
275 ): DecoratedProcedure<TInitialContext, TCurrentContext, TInputSchema, Schema<UFuncOutput, UFuncOutput>, TErrorMap, TMeta> {
276 return new DecoratedProcedure({
277 ...this['~orpc'],
278 handler,
279 })
280 }
281
282 /**
283 * Prefixes all procedures in the router.

Callers 15

assertSuccessCaseFunction · 0.80
assertErrorCaseFunction · 0.80
rpc-link.test.tsFile · 0.80
assertSuccessCaseFunction · 0.80
assertErrorCaseFunction · 0.80
rpc-link.test.tsFile · 0.80
retry.test.tsFile · 0.80
batch.test.tsFile · 0.80
helpers.tsFile · 0.80

Calls

no outgoing calls

Tested by 13

assertSuccessCaseFunction · 0.64
assertErrorCaseFunction · 0.64
assertSuccessCaseFunction · 0.64
assertErrorCaseFunction · 0.64
pingMethod · 0.64
pongMethod · 0.64
pengMethod · 0.64
routerMethod · 0.64
pengMethod · 0.64
pongMethod · 0.64
pingMethod · 0.64
pongMethod · 0.64