mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
14 lines
283 B
JavaScript
14 lines
283 B
JavaScript
import Parser from '../index';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class Element extends YTNode {
|
|
static type = 'Element';
|
|
|
|
constructor(data) {
|
|
super();
|
|
const type = data.newElement.type.componentType;
|
|
return Parser.parse(type.model);
|
|
}
|
|
}
|
|
|
|
export default Element; |