Files
YouTube.js/deno/src/parser/classes/GuideCollapsibleSectionEntry.ts
2023-08-18 11:40:24 +00:00

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);
}
}