feat: properly type renderer parsers

CardCollection, ChipCloud, Endscreen, PlayerOverlay, PlayerOverlayAutoplay, VideoSecondaryInfo and WatchNextEndScreen.
This commit is contained in:
LuanRT
2022-09-05 03:25:36 -03:00
parent ecac5f4d7e
commit 4181969d52
8 changed files with 31 additions and 19 deletions

View File

@@ -11,7 +11,7 @@ class CardCollection extends YTNode {
constructor(data: any) {
super();
this.cards = Parser.parse(data.cards);
this.cards = Parser.parseArray(data.cards);
this.header = new Text(data.headerText);
this.allow_teaser_dismiss = data.allowTeaserDismiss;
}