UNPKG

373 BTypeScriptView Raw
1import { Request } from 'express';
2/**
3 * Creates a Logger that logs an Error if the HTTP status code is not expected
4 *
5 * @param expectedStatusCode - HTTP status code that is expected
6 */
7export declare function createUnexpectedHttpErrorLogger(expectedStatusCode?: number): LogError;
8type LogError = (err: Error, statusCode: number, request: Request) => void;
9export {};