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,11 +1,11 @@
import Parser from '../index.ts';
import Text from './misc/Text.ts';
import Thumbnail from './misc/Thumbnail.ts';
import { YTNode } from '../helpers.ts';
import Parser, { type RawNode } from '../index.ts';
import NavigationEndpoint from './NavigationEndpoint.ts';
import Menu from './menus/Menu.ts';
import { YTNode } from '../helpers.ts';
import Text from './misc/Text.ts';
import Thumbnail from './misc/Thumbnail.ts';
class CompactChannel extends YTNode {
export default class CompactChannel extends YTNode {
static type = 'CompactChannel';
title: Text;
@@ -18,7 +18,7 @@ class CompactChannel extends YTNode {
tv_banner: Thumbnail[];
menu: Menu | null;
constructor(data: any) {
constructor(data: RawNode) {
super();
this.title = new Text(data.title);
this.channel_id = data.channelId;
@@ -30,6 +30,4 @@ class CompactChannel extends YTNode {
this.tv_banner = Thumbnail.fromResponse(data.tvBanner);
this.menu = Parser.parseItem(data.menu, Menu);
}
}
export default CompactChannel;
}