Add types to returns in LogFilter.ts

This commit is contained in:
RMidhunSuresh 2021-11-12 23:17:21 +05:30
parent 29a8260514
commit 8e42e3f21f

View file

@ -37,7 +37,7 @@ export class LogFilter {
this._parentFilter = parentFilter; this._parentFilter = parentFilter;
} }
filter(item: LogItem, children: Array<unknown> | null) { filter(item: LogItem, children: Array<unknown> | null): boolean {
if (this._parentFilter) { if (this._parentFilter) {
if (!this._parentFilter.filter(item, children)) { if (!this._parentFilter.filter(item, children)) {
return false; return false;
@ -52,7 +52,7 @@ export class LogFilter {
} }
/* methods to build the filter */ /* methods to build the filter */
minLevel(logLevel: LogLevel) { minLevel(logLevel: LogLevel): LogFilter {
this._min = logLevel; this._min = logLevel;
return this; return this;
} }