chore: v5.0.0 release

This commit is contained in:
LuanRT
2023-04-29 05:15:47 +00:00
parent b19d687eed
commit 48dc99e28b
445 changed files with 4076 additions and 3578 deletions

View File

@@ -1,7 +1,8 @@
import Text from './misc/Text.ts';
import { YTNode } from '../helpers.ts';
import type { RawNode } from '../index.ts';
class PageIntroduction extends YTNode {
export default class PageIntroduction extends YTNode {
static type = 'PageIntroduction';
header_text: string;
@@ -9,13 +10,11 @@ class PageIntroduction extends YTNode {
page_title: string;
header_icon_type: string;
constructor(data: any) {
constructor(data: RawNode) {
super();
this.header_text = new Text(data.headerText).toString();
this.body_text = new Text(data.bodyText).toString();
this.page_title = new Text(data.pageTitle).toString();
this.header_icon_type = data.headerIcon.iconType;
}
}
export default PageIntroduction;
}