Skip to main content

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

ParameterType
ctxEventContext<T>

Returns

R | Promise<R>