diff --git a/types/index.d.ts b/types/index.d.ts index 40973c52f..d9ac763c5 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -364,7 +364,7 @@ export interface LoggerEntryContent { export type Logger = (entry: LogEntry) => void -export type logCreator = (logLevel: number) => (entry: LogEntry) => void +export type logCreator = (logLevel: logLevel) => (entry: LogEntry) => void export type Broker = { isConnected(): boolean diff --git a/types/tests.ts b/types/tests.ts index 6f106f704..ec79f87b8 100644 --- a/types/tests.ts +++ b/types/tests.ts @@ -29,7 +29,7 @@ const kafka = new Kafka({ username: 'test', password: 'testtest', }, - logCreator: (logLevel: number) => (entry: LogEntry) => { }, + logCreator: (logLevel: logLevel) => (entry: LogEntry) => { }, }) // CONSUMER