mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 11:02:10 +00:00
16 lines
434 B
TypeScript
16 lines
434 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { Parser, type RawNode } from '../index.js';
|
|
import PageHeaderView from './PageHeaderView.js';
|
|
|
|
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);
|
|
}
|
|
} |