RpcHandler()<T, R>
type RpcHandler\<T, R\> = (ctx: EventContext\<T\>) => R | Promise\<R\>;Defined in: src/lib/rpc/types.ts:13
RPC handler function type. Receives the event context and returns a promise with the result.
Type Parameters
| Type Parameter |
|---|
T extends unknown[] |
R |
Parameters
| Parameter | Type |
|---|---|
ctx | EventContext<T> |
Returns
R | Promise<R>