mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 19:42:14 +00:00
14 lines
400 B
TypeScript
14 lines
400 B
TypeScript
import { Parser, type RawNode } from '../index.js';
|
|
import Element from './Element.js';
|
|
import { YTNode } from '../helpers.js';
|
|
|
|
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;
|
|
}
|
|
} |