missing args definitions

This commit is contained in:
Erik 2023-04-13 20:26:44 +03:00
parent d565372adb
commit 7f88c0d9c6
Signed by: Navy.gif
GPG Key ID: 2532FBBB61C65A68
3 changed files with 17 additions and 15 deletions

View File

@ -91,23 +91,23 @@ class LoggerClient implements Logger {
// These methods are dynamically implemented by the constructor
// eslint-disable-next-line @typescript-eslint/no-unused-vars
error (_str: string): void {
error (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
warn (_str: string): void {
warn (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
status (_str: string): void {
status (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
info (_str: string): void {
info (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
debug (_str: string): void {
debug (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}

View File

@ -1,7 +1,9 @@
import { WriteOptions } from "./Types";
export interface Logger {
error(str: string): void
warn(str: string): void
status(str: string): void
info(str: string): void
debug(str: string): void
error(str: string, opts: WriteOptions): void
warn(str: string, opts: WriteOptions): void
status(str: string, opts: WriteOptions): void
info(str: string, opts: WriteOptions): void
debug(str: string, opts: WriteOptions): void
}

View File

@ -228,23 +228,23 @@ class MasterLogger implements Logger {
// These methods are dynamically implemented by the constructor
// eslint-disable-next-line @typescript-eslint/no-unused-vars
error (_str: string): void {
error (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
warn (_str: string): void {
warn (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
status (_str: string): void {
status (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
info (_str: string): void {
info (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}
// eslint-disable-next-line @typescript-eslint/no-unused-vars
debug (_str: string): void {
debug (_str: string, _opts: WriteOptions): void {
throw new Error('Method not implemented.');
}