SheetXL - v0.8.0-beta.9+sites.210.e2d420901
    Preparing search index...

    Type Alias CommandMiddleware<STATE, CONTEXT, ARGS>

    CommandMiddleware: (
        next: CommandCallback<STATE, CONTEXT, ARGS>,
    ) => CommandCallback<STATE, CONTEXT, ARGS>

    Dispatch middleware registered on a scope via CommandScope.use. Onion-style: it receives the next callback and returns a wrapping callback, so the contributor's inner callback stays pure while cross-cutting infra (transaction batching / busy / edit-mode) lives in the wrapper. Bound to the scope that authors the callback — not inherited down the tree (see design/COMMAND-DESIGN.md "Dispatch middleware"). First-registered is outermost. next (and command) carry through so a layer can read command.getLabel() etc.

    Type Parameters

    • STATE = any
    • CONTEXT = any
    • ARGS = void

    Type Declaration