From e3c85c585e2117c9f45cb5f4c91d56342d8fd0e1 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 10 Nov 2021 14:42:43 +0530 Subject: [PATCH] Log callbacks can return more than Promises --- src/logging/LogItem.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/logging/LogItem.ts b/src/logging/LogItem.ts index 094dc7a2..4fdf8ada 100644 --- a/src/logging/LogItem.ts +++ b/src/logging/LogItem.ts @@ -39,7 +39,7 @@ type LogItemValues = LogItemWithLabel | LogItemNetwork | LogItemRef; export type LabelOrValues = string | LogItemValues; export type FilterCreator = ((filter: LogFilter, item: LogItem) => LogFilter) | null; -export type LogCallback = (item: LogItem) => Promise | undefined; +export type LogCallback = (item: LogItem) => unknown; export class LogItem { public start: number;