refactor(parser): fix many minor inconsistencies

This commit is contained in:
LuanRT
2023-03-15 06:43:04 -03:00
parent 1a2fc3abd7
commit 3d3436472f
35 changed files with 144 additions and 144 deletions

View File

@@ -1,4 +1,4 @@
import Parser from '../index.js';
import Parser, { RawNode } from '../index.js';
import { YTNode } from '../helpers.js';
class ProfileColumn extends YTNode {
@@ -6,9 +6,9 @@ class ProfileColumn extends YTNode {
items;
constructor(data: any) {
constructor(data: RawNode) {
super();
this.items = Parser.parse(data.items);
this.items = Parser.parseArray(data.items);
}
// XXX: alias for consistency