From eb136291c20a50b3c60d8138348bd7d02679313c Mon Sep 17 00:00:00 2001 From: "Navy.gif" Date: Tue, 28 Nov 2023 19:49:10 +0200 Subject: [PATCH] type fix --- src/LoggerClient.ts | 10 +++++----- src/MasterLogger.ts | 10 +++++----- 2 files changed, 10 insertions(+), 10 deletions(-) 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.'); }