mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 03:59:38 +00:00
19 lines
626 B
TypeScript
19 lines
626 B
TypeScript
import Parser from '../parser.js';
|
|
import GuideEntry from './GuideEntry.js';
|
|
import type { RawNode } from '../index.js';
|
|
import { YTNode } from '../helpers.js';
|
|
|
|
export default class GuideCollapsibleEntry extends YTNode {
|
|
static type = 'GuideCollapsibleEntry';
|
|
|
|
expander_item: GuideEntry | null;
|
|
collapser_item: GuideEntry | null;
|
|
expandable_items;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.expander_item = Parser.parseItem(data.expanderItem, GuideEntry);
|
|
this.collapser_item = Parser.parseItem(data.collapserItem, GuideEntry);
|
|
this.expandable_items = Parser.parseArray(data.expandableItems);
|
|
}
|
|
} |