might as well use generic here

This commit is contained in:
Bruno Windels 2021-11-17 10:50:55 +01:00
parent 1942c31eff
commit f93bdd962a

View File

@ -48,7 +48,7 @@ export abstract class BaseLogger {
Useful to pair with LogItem.refDetached.
@return {ILogItem} the log item added, useful to pass to LogItem.refDetached */
runDetached(labelOrValues: LabelOrValues, callback: LogCallback<unknown>, logLevel?: LogLevel, filterCreator?: FilterCreator): ILogItem {
runDetached<T>(labelOrValues: LabelOrValues, callback: LogCallback<T>, logLevel?: LogLevel, filterCreator?: FilterCreator): ILogItem {
if (!logLevel) {
logLevel = LogLevel.Info;
}