Popii - v0.5.1
    Preparing search index...

    Type Alias PopiiRegularMiddleware<TState, TInput, TLocals>

    PopiiRegularMiddleware: (
        pop: Pop<TState, TInput, TLocals>,
        next: (err?: any) => Promise<void> | void,
    ) => Promise<void> | void

    Standard middleware — receives the pop context and a next function. Call next(err) to forward an error.

    Type Parameters

    • TState = any
    • TInput = any
    • TLocals = PopiiLocals & Record<string, any>

    Type Declaration

      • (
            pop: Pop<TState, TInput, TLocals>,
            next: (err?: any) => Promise<void> | void,
        ): Promise<void> | void
      • Parameters

        Returns Promise<void> | void