RpcHandler
RpcHandler<
TReq,TRes> = (request,context) =>Promise<z.infer<TRes>>
Defined in: packages/hoppity/src/handlers/types.ts:79
Handler for RPC operations. Must be async and return the response type.
Type Parameters
Section titled “Type Parameters”TReq extends ZodTypeAny
The Zod schema for the request payload
TRes extends ZodTypeAny
The Zod schema for the response payload
Parameters
Section titled “Parameters”request
Section titled “request”z.infer<TReq>
context
Section titled “context”Returns
Section titled “Returns”Promise<z.infer<TRes>>