mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 19:12:24 +00:00
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
19 lines
539 B
TypeScript
19 lines
539 B
TypeScript
import Parser from '../index';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class TwoColumnWatchNextResults extends YTNode {
|
|
static type = 'TwoColumnWatchNextResults';
|
|
|
|
results;
|
|
secondary_results;
|
|
conversation_bar;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.results = Parser.parse(data.results?.results.contents, true);
|
|
this.secondary_results = Parser.parse(data.secondaryResults?.secondaryResults.results, true);
|
|
this.conversation_bar = Parser.parse(data?.conversationBar);
|
|
}
|
|
}
|
|
|
|
export default TwoColumnWatchNextResults; |