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:
25
src/parser/classes/comments/CommentReplyDialog.ts
Normal file
25
src/parser/classes/comments/CommentReplyDialog.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import Parser from '../../index';
|
||||
import Thumbnail from '../misc/Thumbnail';
|
||||
import Text from '../misc/Text';
|
||||
import { YTNode } from '../../helpers';
|
||||
|
||||
class CommentReplyDialog extends YTNode {
|
||||
static type = 'CommentReplyDialog';
|
||||
|
||||
reply_button;
|
||||
cancel_button;
|
||||
author_thumbnail;
|
||||
placeholder;
|
||||
error_message;
|
||||
|
||||
constructor(data: any) {
|
||||
super();
|
||||
this.reply_button = Parser.parse(data.replyButton);
|
||||
this.cancel_button = Parser.parse(data.cancelButton);
|
||||
this.author_thumbnail = Thumbnail.fromResponse(data.authorThumbnail);
|
||||
this.placeholder = new Text(data.placeholderText);
|
||||
this.error_message = new Text(data.errorMessage);
|
||||
}
|
||||
}
|
||||
|
||||
export default CommentReplyDialog;
|
||||
Reference in New Issue
Block a user