mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 07:11:48 +00:00
16 lines
434 B
TypeScript
16 lines
434 B
TypeScript
import { YTNode } from '../helpers.ts';
|
|
import Parser, { type RawNode } from '../index.ts';
|
|
import PageHeaderView from './PageHeaderView.ts';
|
|
|
|
export default class PageHeader extends YTNode {
|
|
static type = 'PageHeader';
|
|
|
|
page_title: string;
|
|
content: PageHeaderView | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.page_title = data.pageTitle;
|
|
this.content = Parser.parseItem(data.content, PageHeaderView);
|
|
}
|
|
} |