From 07a1130db33963ba4090657432aed766fd8af501 Mon Sep 17 00:00:00 2001 From: RMidhunSuresh Date: Wed, 17 Nov 2021 12:02:12 +0530 Subject: [PATCH] children can be array of ISerializedItem --- src/logging/LogFilter.ts | 4 ++-- src/logging/LogItem.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/logging/LogFilter.ts b/src/logging/LogFilter.ts index 5f0e7ae7..d0189631 100644 --- a/src/logging/LogFilter.ts +++ b/src/logging/LogFilter.ts @@ -14,7 +14,7 @@ See the License for the specific language governing permissions and limitations under the License. */ -import type {ILogItem} from "./LogItem"; +import type {ILogItem, ISerializedItem} from "./LogItem"; export enum LogLevel { All = 1, @@ -35,7 +35,7 @@ export class LogFilter { this._parentFilter = parentFilter; } - filter(item: ILogItem, children: Array | null): boolean { + filter(item: ILogItem, children: ISerializedItem[] | null): boolean { if (this._parentFilter) { if (!this._parentFilter.filter(item, children)) { return false; diff --git a/src/logging/LogItem.ts b/src/logging/LogItem.ts index fd9fcb1d..30a6294a 100644 --- a/src/logging/LogItem.ts +++ b/src/logging/LogItem.ts @@ -18,7 +18,7 @@ limitations under the License. import {LogLevel, LogFilter} from "./LogFilter"; import type {BaseLogger} from "./BaseLogger"; -interface ISerializedItem { +export interface ISerializedItem { s: number; d?: number; v: LogItemValues;