innertuber-rn
Version:
A wrapper around YouTube's private API. Supports YouTube, YouTube Music, YouTube Kids and YouTube Studio (WIP).
16 lines • 476 B
JavaScript
import { Parser } from '../index.js';
import { YTNode } from '../helpers.js';
class HorizontalList extends YTNode {
constructor(data) {
super();
this.visible_item_count = data.visibleItemCount;
this.items = Parser.parseArray(data.items);
}
// XXX: Alias for consistency.
get contents() {
return this.items;
}
}
HorizontalList.type = 'HorizontalList';
export default HorizontalList;
//# sourceMappingURL=HorizontalList.js.map