fix typescript errors
This commit is contained in:
parent
c5c08ea34b
commit
5ea29297cc
2 changed files with 4 additions and 2 deletions
|
@ -64,7 +64,9 @@ export class NullLogItem implements ILogItem {
|
|||
return callback(this);
|
||||
}
|
||||
|
||||
log(): void {}
|
||||
log(): ILogItem {
|
||||
return this;
|
||||
}
|
||||
set(): void {}
|
||||
|
||||
runDetached(_: LabelOrValues, callback: LogCallback<unknown>): ILogItem {
|
||||
|
|
|
@ -42,7 +42,7 @@ export interface ILogItem {
|
|||
readonly start?: number;
|
||||
readonly values: LogItemValues;
|
||||
wrap<T>(labelOrValues: LabelOrValues, callback: LogCallback<T>, logLevel?: LogLevel, filterCreator?: FilterCreator): T;
|
||||
log(labelOrValues: LabelOrValues, logLevel?: LogLevel): void;
|
||||
log(labelOrValues: LabelOrValues, logLevel?: LogLevel): ILogItem;
|
||||
set(key: string | object, value: unknown): void;
|
||||
runDetached(labelOrValues: LabelOrValues, callback: LogCallback<unknown>, logLevel?: LogLevel, filterCreator?: FilterCreator): ILogItem;
|
||||
wrapDetached(labelOrValues: LabelOrValues, callback: LogCallback<unknown>, logLevel?: LogLevel, filterCreator?: FilterCreator): void;
|
||||
|
|
Reference in a new issue