feat: add music#getRecap() (#165)

* dev: add recap renderer parsers

* dev: finish implementation 

* docs: update YouTube Music API ref
This commit is contained in:
LuanRT
2022-09-05 18:08:34 -03:00
committed by GitHub
parent f9da261441
commit 85fc468cc9
12 changed files with 288 additions and 15 deletions

View File

@@ -0,0 +1,17 @@
import Parser from '../index';
import Element from './Element';
import { YTNode } from '../helpers';
class MusicElementHeader extends YTNode {
static type = 'MusicElementHeader';
element: Element | null;
constructor(data: any) {
super();
this.element = Reflect.has(data, 'elementRenderer') ? Parser.parseItem<Element>(data, Element) : null;
}
}
export default MusicElementHeader;