mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 22:18:14 +00:00
24 lines
447 B
TypeScript
24 lines
447 B
TypeScript
import Parser, { RawNode } from '../index.js';
|
|
import { YTNode } from '../helpers.js';
|
|
import Text from './misc/Text.js';
|
|
|
|
class MusicHeader extends YTNode {
|
|
static type = 'MusicHeader';
|
|
|
|
header?;
|
|
title?: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
|
|
if (data.header) {
|
|
this.header = Parser.parseItem(data.header);
|
|
}
|
|
|
|
if (data.title) {
|
|
this.title = new Text(data.title);
|
|
}
|
|
}
|
|
}
|
|
|
|
export default MusicHeader; |