mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-24 07:11:48 +00:00
refactor: migrate parsers to TS (#133)
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
This commit is contained in:
18
src/parser/classes/WatchNextEndScreen.ts
Normal file
18
src/parser/classes/WatchNextEndScreen.ts
Normal file
@@ -0,0 +1,18 @@
|
||||
import Parser from '../index';
|
||||
import Text from './misc/Text';
|
||||
import { YTNode } from '../helpers';
|
||||
|
||||
class WatchNextEndScreen extends YTNode {
|
||||
static type = 'WatchNextEndScreen';
|
||||
|
||||
results;
|
||||
title: string;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.results = Parser.parse(data.results);
|
||||
this.title = new Text(data.title).toString();
|
||||
}
|
||||
}
|
||||
|
||||
export default WatchNextEndScreen;
|
||||
Reference in New Issue
Block a user