children can be array of ISerializedItem

This commit is contained in:
RMidhunSuresh 2021-11-17 12:02:12 +05:30
parent 835da58b53
commit 07a1130db3
2 changed files with 3 additions and 3 deletions

View File

@ -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<unknown> | null): boolean {
filter(item: ILogItem, children: ISerializedItem[] | null): boolean {
if (this._parentFilter) {
if (!this._parentFilter.filter(item, children)) {
return false;

View File

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