Skip to content

Commit

Permalink
Change type of logCreator's argument to logLevel
Browse files Browse the repository at this point in the history
  • Loading branch information
johan13 committed Oct 31, 2019
1 parent 59ae570 commit 9f58152
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion types/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion types/tests.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const kafka = new Kafka({
username: 'test',
password: 'testtest',
},
logCreator: (logLevel: number) => (entry: LogEntry) => { },
logCreator: (logLevel: logLevel) => (entry: LogEntry) => { },
})

// CONSUMER
Expand Down

0 comments on commit 9f58152

Please sign in to comment.