chore: v5.0.0 release

This commit is contained in:
LuanRT
2023-04-29 05:15:47 +00:00
parent b19d687eed
commit 48dc99e28b
445 changed files with 4076 additions and 3578 deletions

View File

@@ -1,8 +1,9 @@
import Thumbnail from './misc/Thumbnail.ts';
import NavigationEndpoint from './NavigationEndpoint.ts';
import { YTNode } from '../helpers.ts';
import type { RawNode } from '../index.ts';
class MerchandiseItem extends YTNode {
export default class MerchandiseItem extends YTNode {
static type = 'MerchandiseItem';
title: string;
@@ -17,7 +18,7 @@ class MerchandiseItem extends YTNode {
region_format: string;
endpoint: NavigationEndpoint;
constructor(data: any) {
constructor(data: RawNode) {
super();
this.title = data.title;
this.description = data.description;
@@ -31,6 +32,4 @@ class MerchandiseItem extends YTNode {
this.region_format = data.regionFormat;
this.endpoint = new NavigationEndpoint(data.buttonCommand);
}
}
export default MerchandiseItem;
}