mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-20 21:13:33 +00:00
20 lines
354 B
TypeScript
20 lines
354 B
TypeScript
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; |