Skip to content

Commit

Permalink
fix: typing typo (#257)
Browse files Browse the repository at this point in the history
  • Loading branch information
leftieFriele authored Apr 10, 2024
1 parent 4639ca2 commit c000375
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions types/log.d.ts
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
export type LogFunciton = (...args: any) => void;
export type LogFunction = (...args: any) => void;

/**
* An abstract logger which enables adding logging to modules without adding a dependency to a full log library
*/
export type AbstractLogger = {
trace: LogFunciton,
debug: LogFunciton,
info: LogFunciton,
warn: LogFunciton,
error: LogFunciton,
fatal: LogFunciton
trace: LogFunction,
debug: LogFunction,
info: LogFunction,
warn: LogFunction,
error: LogFunction,
fatal: LogFunction
}

declare function abstractLogger(logger: any): AbstractLogger;
export default abstractLogger;
export default abstractLogger;

0 comments on commit c000375

Please sign in to comment.