mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 04:21:35 +00:00
* feat(yt): add `getGuide()` * chore: lint * fix(Guide): wrong prop * fix(Guide): include subscription section * fix(Guide): wrong import * feat(Guide): add `page`
23 lines
586 B
TypeScript
23 lines
586 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import Parser from '../parser.js';
|
|
|
|
class GuideCollapsibleSectionEntry extends YTNode {
|
|
static type = 'GuideCollapsibleSectionEntry';
|
|
|
|
header_entry;
|
|
expander_icon: string;
|
|
collapser_icon: string;
|
|
section_items;
|
|
|
|
constructor(data: any) {
|
|
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);
|
|
|
|
}
|
|
}
|
|
|
|
export default GuideCollapsibleSectionEntry; |