mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 07:11:48 +00:00
20 lines
657 B
TypeScript
20 lines
657 B
TypeScript
import * as Parser from '../parser.ts';
|
|
import type { RawNode } from '../index.ts';
|
|
import { type ObservedArray, YTNode } from '../helpers.ts';
|
|
|
|
export default class GuideCollapsibleSectionEntry extends YTNode {
|
|
static type = 'GuideCollapsibleSectionEntry';
|
|
|
|
header_entry: YTNode;
|
|
expander_icon: string;
|
|
collapser_icon: string;
|
|
section_items: ObservedArray<YTNode>;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.header_entry = Parser.parseItem(data.headerEntry);
|
|
this.expander_icon = data.expanderIcon.iconType;
|
|
this.collapser_icon = data.collapserIcon.iconType;
|
|
this.section_items = Parser.parseArray(data.sectionItems);
|
|
}
|
|
} |