Skip to content

Commit

Permalink
fix(logger): Use correct function signature for logger type
Browse files Browse the repository at this point in the history
  • Loading branch information
lukas committed Sep 6, 2023
1 parent 3b277eb commit 2d5fb7d
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@lifi/abi-parser",
"version": "0.0.1-alpha.13",
"version": "0.0.1-alpha.14",
"publishConfig": {
"access": "public"
},
Expand Down
3 changes: 2 additions & 1 deletion src/lib/logger.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,8 @@ import winston from 'winston'
type LogLevel = 'error' | 'warn' | 'info' | 'debug'

export type Logger = {
[method in LogLevel]: (message: string, info?: unknown) => void
// eslint-disable-next-line @typescript-eslint/no-explicit-any
[method in LogLevel]: (message: string, info?: any) => void
}

const prettyError = new PrettyError()
Expand Down

0 comments on commit 2d5fb7d

Please sign in to comment.