Skip to content

Commit

Permalink
remove logcallback (#2513)
Browse files Browse the repository at this point in the history
  • Loading branch information
tokidoki11 authored Oct 5, 2024
1 parent f110f61 commit 3a54777
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -63,30 +63,19 @@ declare namespace winston {
done(info?: any): boolean;
}

type LogCallback = (
error?: any,
level?: string,
message?: string,
meta?: any
) => void;

interface LogEntry {
level: string;
message: string;
[optionName: string]: any;
}

interface LogMethod {
(level: string, message: string, callback: LogCallback): Logger;
(level: string, message: string, meta: any, callback: LogCallback): Logger;
(level: string, message: string, ...meta: any[]): Logger;
(entry: LogEntry): Logger;
(level: string, message: any): Logger;
}

interface LeveledLogMethod {
(message: string, callback: LogCallback): Logger;
(message: string, meta: any, callback: LogCallback): Logger;
(message: string, ...meta: any[]): Logger;
(message: any): Logger;
(infoObject: object): Logger;
Expand Down

0 comments on commit 3a54777

Please sign in to comment.