feat: migrate all playlist renderers to TypeScript

This commit is contained in:
LuanRT
2022-08-04 01:56:53 -03:00
parent 9e2443d1aa
commit a788c9c80f
21 changed files with 244 additions and 108 deletions

View File

@@ -0,0 +1,20 @@
import Parser from '../index';
import { YTNode } from '../helpers';
class PlaylistSidebar extends YTNode {
static type = 'PlaylistSidebar';
items;
constructor(data: any) {
super();
this.items = Parser.parse(data.items);
}
// XXX: alias for consistency
get contents() {
return this.items;
}
}
export default PlaylistSidebar;