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 🎉
15 lines
409 B
TypeScript
15 lines
409 B
TypeScript
import MetadataBadge from './MetadataBadge';
|
|
import Thumbnail from './misc/Thumbnail';
|
|
|
|
class LiveChatAuthorBadge extends MetadataBadge {
|
|
static type = 'LiveChatAuthorBadge';
|
|
|
|
custom_thumbnail: Thumbnail[] | null;
|
|
|
|
constructor(data: any) {
|
|
super(data);
|
|
this.custom_thumbnail = data.customThumbnail ? Thumbnail.fromResponse(data.customThumbnail) : null;
|
|
}
|
|
}
|
|
|
|
export default LiveChatAuthorBadge; |