chore: v3.2.0 release

This commit is contained in:
LuanRT
2023-03-08 10:21:32 +00:00
parent ae15fa742e
commit 6d823a9777
120 changed files with 705 additions and 186 deletions

View File

@@ -0,0 +1,35 @@
import Text from './misc/Text.ts';
import { YTNode } from '../helpers.ts';
import Parser from '../parser.ts';
class GuideCollapsibleEntry extends YTNode {
static type = 'GuideCollapsibleEntry';
expander_item: {
title: string,
icon_type: string
};
collapser_item: {
title: string,
icon_type: string
};
expandable_items;
constructor(data: any) {
super();
this.expander_item = {
title: new Text(data.expanderItem.guideEntryRenderer.formattedTitle).toString(),
icon_type: data.expanderItem.guideEntryRenderer.icon.iconType
};
this.collapser_item = {
title: new Text(data.collapserItem.guideEntryRenderer.formattedTitle).toString(),
icon_type: data.collapserItem.guideEntryRenderer.icon.iconType
};
this.expandable_items = Parser.parseArray(data.expandableItems);
}
}
export default GuideCollapsibleEntry;