mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 00:02:09 +00:00
chore: v5.0.0 release
This commit is contained in:
@@ -1,20 +1,18 @@
|
||||
import Parser from '../index.ts';
|
||||
import { YTNode, type ObservedArray } from '../helpers.ts';
|
||||
import Parser, { type RawNode } from '../index.ts';
|
||||
import Text from './misc/Text.ts';
|
||||
import { YTNode } from '../helpers.ts';
|
||||
|
||||
class CardCollection extends YTNode {
|
||||
export default class CardCollection extends YTNode {
|
||||
static type = 'CardCollection';
|
||||
|
||||
cards;
|
||||
cards: ObservedArray<YTNode>;
|
||||
header: Text;
|
||||
allow_teaser_dismiss: boolean;
|
||||
|
||||
constructor(data: any) {
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.cards = Parser.parseArray(data.cards);
|
||||
this.header = new Text(data.headerText);
|
||||
this.allow_teaser_dismiss = data.allowTeaserDismiss;
|
||||
}
|
||||
}
|
||||
|
||||
export default CardCollection;
|
||||
}
|
||||
Reference in New Issue
Block a user