diff --git a/index.d.ts b/index.d.ts index ae7a88d..57a3383 100644 --- a/index.d.ts +++ b/index.d.ts @@ -12,13 +12,13 @@ import { IncomingMessage, ServerResponse } from 'http'; import pino from 'pino'; import { err, req, res, SerializedError, SerializedRequest, SerializedResponse } from 'pino-std-serializers'; -declare function PinoHttp>(opts?: Opts, stream?: pino.DestinationStream): HttpLogger; +declare function PinoHttp(opts?: Options, stream?: pino.DestinationStream): HttpLogger; declare function PinoHttp(stream?: pino.DestinationStream): HttpLogger; -export interface HttpLogger> { +export interface HttpLogger { (req: IM, res: SR, next?: () => void): void; - logger: pino.Logger; + logger: pino.Logger; } export type ReqId = number | string | object; diff --git a/index.test-d.ts b/index.test-d.ts index 5734aec..31b1bcd 100644 --- a/index.test-d.ts +++ b/index.test-d.ts @@ -208,7 +208,7 @@ const httpServerListener: RequestListener = (request, response) => { // custom levels added in the options should be available // on the logger returned by pino-http -pinoHttp({ +pinoHttp({ customLevels: { bark: 25, }