diff --git a/src/LoggerClient.ts b/src/LoggerClient.ts index 5dbf102..5529757 100644 --- a/src/LoggerClient.ts +++ b/src/LoggerClient.ts @@ -118,27 +118,27 @@ class LoggerClient implements Logger // These methods are dynamically implemented by the constructor, simply here to provide IDE hints // eslint-disable-next-line @typescript-eslint/no-unused-vars - error (..._args: [...entries: Loggable[], options: WriteOptions]): void + error (..._args: [...entries: Loggable[], options: WriteOptions|Loggable]): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - warn (..._args: [...entries: Loggable[], options: WriteOptions]): void + warn (..._args: [...entries: Loggable[], options: WriteOptions|Loggable]): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - status (..._args: [...entries: Loggable[], options: WriteOptions]): void + status (..._args: [...entries: Loggable[], options: WriteOptions|Loggable]): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - info (..._args: [...entries: Loggable[], options: WriteOptions]): void + info (..._args: [...entries: Loggable[], options: WriteOptions|Loggable]): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - debug (..._args: [...entries: Loggable[], options: WriteOptions]): void + debug (..._args: [...entries: Loggable[], options: WriteOptions|Loggable]): void { throw new Error('Method not implemented.'); } diff --git a/src/MasterLogger.ts b/src/MasterLogger.ts index a524cd0..a160e02 100644 --- a/src/MasterLogger.ts +++ b/src/MasterLogger.ts @@ -318,27 +318,27 @@ class MasterLogger implements Logger // These methods are dynamically implemented by the constructor // eslint-disable-next-line @typescript-eslint/no-unused-vars - error (..._args: [...entries: Loggable[], options: WriteOptions]): void + error (..._args: [...entries: Loggable[], options: WriteOptions | Loggable]): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - warn (..._args: [...entries: Loggable[], options: WriteOptions]): void + warn (..._args: [...entries: Loggable[], options: WriteOptions | Loggable]): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - status (..._args: [...entries: Loggable[], options: WriteOptions]): void + status (..._args: [...entries: Loggable[], options: WriteOptions | Loggable]): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - info (..._args: [...entries: Loggable[], options: WriteOptions]): void + info (..._args: [...entries: Loggable[], options: WriteOptions | Loggable]): void { throw new Error('Method not implemented.'); } // eslint-disable-next-line @typescript-eslint/no-unused-vars - debug (..._args: [...entries: Loggable[], options: WriteOptions]): void + debug (..._args: [...entries: Loggable[], options: WriteOptions | Loggable]): void { throw new Error('Method not implemented.'); }