mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
24 lines
492 B
TypeScript
24 lines
492 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import Parser, { RawNode } from '../index.js';
|
|
|
|
class MerchandiseShelf extends YTNode {
|
|
static type = 'MerchandiseShelf';
|
|
|
|
title: string;
|
|
menu;
|
|
items;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.title = data.title;
|
|
this.menu = Parser.parseItem(data.actionButton);
|
|
this.items = Parser.parseArray(data.items);
|
|
}
|
|
|
|
// XXX: alias for consistency
|
|
get contents() {
|
|
return this.items;
|
|
}
|
|
}
|
|
|
|
export default MerchandiseShelf; |