forked from mystiq/hydrogen-web
Add types to returns in LogFilter.ts
This commit is contained in:
parent
29a8260514
commit
8e42e3f21f
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue