mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-26 16:18:51 +00:00
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
23 lines
537 B
TypeScript
23 lines
537 B
TypeScript
import Text from './misc/Text';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class ChannelVideoPlayer extends YTNode {
|
|
static type = 'ChannelVideoPlayer';
|
|
|
|
id: string;
|
|
title: Text;
|
|
description: Text;
|
|
views: Text;
|
|
published: Text;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.id = data.videoId;
|
|
this.title = new Text(data.title);
|
|
this.description = new Text(data.description);
|
|
this.views = new Text(data.viewCountText);
|
|
this.published = new Text(data.publishedTimeText);
|
|
}
|
|
}
|
|
|
|
export default ChannelVideoPlayer; |