import { YTNode, type ObservedArray } from '../helpers.ts'; import Parser, { type RawNode } from '../index.ts'; import NavigationEndpoint from './NavigationEndpoint.ts'; import Text from './misc/Text.ts'; export default class VerticalWatchCardList extends YTNode { static type = 'VerticalWatchCardList'; items: ObservedArray; view_all_text: Text; view_all_endpoint: NavigationEndpoint; constructor(data: RawNode) { super(); this.items = Parser.parseArray(data.items); this.view_all_text = new Text(data.viewAllText); this.view_all_endpoint = new NavigationEndpoint(data.viewAllEndpoint); } // XXX: Alias for consistency. get contents() { return this.items; } }