update typings
This commit is contained in:
parent
e99a5ab7f4
commit
9ff3ad7248
@ -199,7 +199,7 @@ class MasterLogger implements Logger
|
||||
});
|
||||
}
|
||||
|
||||
write (type = 'info', text: string | Error, { subheader = '', shard, broadcast = false }: WriteOptions = {})
|
||||
write (type = 'info', text: string | object | Error, { subheader = '', shard, broadcast = false }: WriteOptions = {})
|
||||
{
|
||||
|
||||
type = type.toLowerCase();
|
||||
@ -287,27 +287,27 @@ class MasterLogger implements Logger
|
||||
|
||||
// These methods are dynamically implemented by the constructor
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
error (_str: string | Error, _opts?: WriteOptions): void
|
||||
error (_str: string | object | Error, _opts?: WriteOptions): void
|
||||
{
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
warn (_str: string | Error, _opts?: WriteOptions): void
|
||||
warn (_str: string | object | Error, _opts?: WriteOptions): void
|
||||
{
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
status (_str: string | Error, _opts?: WriteOptions): void
|
||||
status (_str: string | object | Error, _opts?: WriteOptions): void
|
||||
{
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
info (_str: string | Error, _opts?: WriteOptions): void
|
||||
info (_str: string | object | Error, _opts?: WriteOptions): void
|
||||
{
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
||||
debug (_str: string | Error, _opts?: WriteOptions): void
|
||||
debug (_str: string | object | Error, _opts?: WriteOptions): void
|
||||
{
|
||||
throw new Error('Method not implemented.');
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user