couch-kit
    Preparing search index...

    Type Alias Middleware<S, A>

    Middleware: (
        api: MiddlewareAPI<S>,
    ) => (
        next: MiddlewareDispatch<S, A>,
    ) => (action: A | InternalAction<S>) => S

    Redux-style middleware — a three-layer curried function:

    1. Receives the middleware API (getState).
    2. Receives next (the downstream dispatch).
    3. Receives the action and returns the new state.

    Type Parameters

    Type Declaration