fix typescript errors

This commit is contained in:
Bruno Windels 2021-12-09 18:44:44 +01:00
parent c5c08ea34b
commit 5ea29297cc
2 changed files with 4 additions and 2 deletions

View file

@ -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 {

View file

@ -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;