Skip to content

Commit 090acaa

Browse files
committed
fix: correct the export type of Logger
1 parent 2704b72 commit 090acaa

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import pino, { BaseLogger, DestinationStream, LoggerOptions, LevelMapping } from 'pino';
1+
import pino, { DestinationStream, LevelMapping, LoggerOptions, Logger } from 'pino';
22
import { GlobalContextStorageProvider, ContextStorageProvider, ContextMap } from './context';
33

44
export interface ExtendedPinoOptions extends LoggerOptions {
@@ -75,7 +75,7 @@ const pinolambda = ({ levels, options }: PinoLambdaExtensionOptions): Destinatio
7575
},
7676
});
7777

78-
export type PinoLambdaLogger = BaseLogger & {
78+
export type PinoLambdaLogger = Logger & {
7979
withRequest: (event: LamdbaEvent, context: LambdaContext) => void;
8080
};
8181

0 commit comments

Comments
 (0)