kkrpc
    Preparing search index...

    Type Alias RPCInterceptor

    RPCInterceptor: (
        ctx: RPCCallContext,
        next: () => Promise<unknown>,
    ) => Promise<unknown>

    An interceptor function.

    Call next() to proceed to the next interceptor (or the handler). Return the result — you can transform it before returning. Throw to abort the call (the error propagates to the caller).

    Type declaration

      • (ctx: RPCCallContext, next: () => Promise<unknown>): Promise<unknown>
      • Parameters

        Returns Promise<unknown>