mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 07:11:48 +00:00
chore: v5.0.0 release
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user