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 Grid extends YTNode {
@@ -11,13 +11,13 @@ class Grid extends YTNode {
continuation: string | null;
header?;
constructor(data: any) {
constructor(data: RawNode) {
super();
this.items = Parser.parseArray(data.items);
if (data.header) {
this.header = Parser.parse(data.header);
this.header = Parser.parseItem(data.header);
}
if (data.isCollapsible) {