mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
14 lines
400 B
TypeScript
14 lines
400 B
TypeScript
import Parser, { type RawNode } from '../index.ts';
|
|
import Element from './Element.ts';
|
|
import { YTNode } from '../helpers.ts';
|
|
|
|
export default class MusicElementHeader extends YTNode {
|
|
static type = 'MusicElementHeader';
|
|
|
|
element: Element | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.element = Reflect.has(data, 'elementRenderer') ? Parser.parseItem(data, Element) : null;
|
|
}
|
|
} |