teleproto - v1.229.0
    Preparing search index...

    Type Alias UpdateMiddleware<T>

    UpdateMiddleware: (update: T, next: NextFn) => unknown | Promise<unknown>

    One link of the chain: receives the update and next.

    next() runs the handlers behind it and waits for them, so work can happen before and after; returning without it ends the chain for that update.

    Type Parameters

    • T = any

    Type Declaration

      • (update: T, next: NextFn): unknown | Promise<unknown>
      • Parameters

        Returns unknown | Promise<unknown>