mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
refactor(parser): fix many minor inconsistencies
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user