mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
24 lines
702 B
TypeScript
24 lines
702 B
TypeScript
import Text from '../misc/Text';
|
|
import Thumbnail from '../misc/Thumbnail';
|
|
import { YTNode } from '../../helpers';
|
|
|
|
class CommentsEntryPointHeader extends YTNode {
|
|
static type = 'CommentsEntryPointHeader';
|
|
|
|
header;
|
|
comment_count;
|
|
teaser_avatar;
|
|
teaser_content;
|
|
simplebox_placeholder;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.header = new Text(data.headerText);
|
|
this.comment_count = new Text(data.commentCount);
|
|
this.teaser_avatar = Thumbnail.fromResponse(data.teaserAvatar || data.simpleboxAvatar);
|
|
this.teaser_content = new Text(data.teaserContent);
|
|
this.simplebox_placeholder = new Text(data.simpleboxPlaceholder);
|
|
}
|
|
}
|
|
|
|
export default CommentsEntryPointHeader; |