mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-27 16:48:55 +00:00
chore: v5.0.0 release
This commit is contained in:
@@ -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;
|
||||
}
|
||||
Reference in New Issue
Block a user