Files
YouTube.js/src/parser/classes/Element.js
2022-07-21 03:51:28 -03:00

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;