* Defines the handler of the procedure. * * @see https://orpc.dev/docs/procedure Procedure Docs
(
handler: ProcedureHandler<TCurrentContext, unknown, UFuncOutput, TErrorMap, TMeta>,
)
| 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. |
no outgoing calls