mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 15:21:54 +00:00
22 lines
439 B
TypeScript
22 lines
439 B
TypeScript
import Parser from '../index';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class HorizontalList extends YTNode {
|
|
static type = 'HorizontalList';
|
|
|
|
visible_item_count: string;
|
|
items;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.visible_item_count = data.visibleItemCount;
|
|
this.items = Parser.parseArray(data.items);
|
|
}
|
|
|
|
// XXX: alias for consistency
|
|
get contents() {
|
|
return this.items;
|
|
}
|
|
}
|
|
|
|
export default HorizontalList; |