mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 00:56:23 +00:00
feat: properly type renderer parsers
CardCollection, ChipCloud, Endscreen, PlayerOverlay, PlayerOverlayAutoplay, VideoSecondaryInfo and WatchNextEndScreen.
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user