mirror of
https://github.com/vector-im/hydrogen-web.git
synced 2024-12-23 19:45:05 +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.
|
limitations under the License.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import type {ILogItem} from "./LogItem";
|
import type {ILogItem, ISerializedItem} from "./LogItem";
|
||||||
|
|
||||||
export enum LogLevel {
|
export enum LogLevel {
|
||||||
All = 1,
|
All = 1,
|
||||||
@ -35,7 +35,7 @@ export class LogFilter {
|
|||||||
this._parentFilter = parentFilter;
|
this._parentFilter = parentFilter;
|
||||||
}
|
}
|
||||||
|
|
||||||
filter(item: ILogItem, children: Array<unknown> | null): boolean {
|
filter(item: ILogItem, children: ISerializedItem[] | null): boolean {
|
||||||
if (this._parentFilter) {
|
if (this._parentFilter) {
|
||||||
if (!this._parentFilter.filter(item, children)) {
|
if (!this._parentFilter.filter(item, children)) {
|
||||||
return false;
|
return false;
|
||||||
|
@ -18,7 +18,7 @@ limitations under the License.
|
|||||||
import {LogLevel, LogFilter} from "./LogFilter";
|
import {LogLevel, LogFilter} from "./LogFilter";
|
||||||
import type {BaseLogger} from "./BaseLogger";
|
import type {BaseLogger} from "./BaseLogger";
|
||||||
|
|
||||||
interface ISerializedItem {
|
export interface ISerializedItem {
|
||||||
s: number;
|
s: number;
|
||||||
d?: number;
|
d?: number;
|
||||||
v: LogItemValues;
|
v: LogItemValues;
|
||||||
|
Loading…
Reference in New Issue
Block a user