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,20 +1,18 @@
import Parser from '../index.ts';
import Text from './misc/Text.ts';
import EndScreenVideo from './EndScreenVideo.ts';
import { YTNode, type ObservedArray } from '../helpers.ts';
import Parser, { type RawNode } from '../index.ts';
import EndScreenPlaylist from './EndScreenPlaylist.ts';
import { YTNode } from '../helpers.ts';
import EndScreenVideo from './EndScreenVideo.ts';
import Text from './misc/Text.ts';
class WatchNextEndScreen extends YTNode {
export default class WatchNextEndScreen extends YTNode {
static type = 'WatchNextEndScreen';
results;
results: ObservedArray<EndScreenVideo | EndScreenPlaylist>;
title: string;
constructor(data: any) {
constructor(data: RawNode) {
super();
this.results = Parser.parseArray(data.results, [ EndScreenVideo, EndScreenPlaylist ]);
this.title = new Text(data.title).toString();
}
}
export default WatchNextEndScreen;
}