mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 11:35:04 +01:00
children can be array of ISerializedItem
This commit is contained in:
parent
835da58b53
commit
07a1130db3
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user