mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-03 17:38:23 +00:00
chore: v4.0.0 release
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
import Parser from '../index.ts';
|
||||
import Parser, { RawNode } from '../index.ts';
|
||||
import { YTNode } from '../helpers.ts';
|
||||
|
||||
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