chore: v3.0.0 release

This commit is contained in:
LuanRT
2023-02-17 04:23:49 +00:00
commit 52b7400442
497 changed files with 27613 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
import Parser from '../index.ts';
import { YTNode } from '../helpers.ts';
import PlaylistPanelVideo from './PlaylistPanelVideo.ts';
class PlaylistPanelVideoWrapper extends YTNode {
static type = 'PlaylistPanelVideoWrapper';
primary: PlaylistPanelVideo | null;
counterpart: Array<PlaylistPanelVideo | null>;
constructor(data: any) {
super();
this.primary = Parser.parseItem<PlaylistPanelVideo>(data.primaryRenderer);
this.counterpart = data.counterpart?.map((item: any) => Parser.parseItem<PlaylistPanelVideo>(item.counterpartRenderer)) || [];
}
}
export default PlaylistPanelVideoWrapper;