Log callbacks can return more than Promises

This commit is contained in:
RMidhunSuresh 2021-11-10 14:42:43 +05:30
parent 0b4eca4724
commit e3c85c585e

View file

@ -39,7 +39,7 @@ type LogItemValues = LogItemWithLabel | LogItemNetwork | LogItemRef;
export type LabelOrValues = string | LogItemValues; export type LabelOrValues = string | LogItemValues;
export type FilterCreator = ((filter: LogFilter, item: LogItem) => LogFilter) | null; export type FilterCreator = ((filter: LogFilter, item: LogItem) => LogFilter) | null;
export type LogCallback = (item: LogItem) => Promise<unknown> | undefined; export type LogCallback = (item: LogItem) => unknown;
export class LogItem { export class LogItem {
public start: number; public start: number;