Interface Middleware

interface Middleware {
    onError?(context): Promise<void | Response>;
    post?(context): Promise<void | Response>;
    pre?(context): Promise<void | FetchParams>;
}

Methods

  • Parameters

    Returns Promise<void | Response>

  • Parameters

    Returns Promise<void | Response>