mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
16 lines
339 B
TypeScript
16 lines
339 B
TypeScript
import { YTNode } from '../helpers';
|
|
|
|
class MusicInlineBadge extends YTNode {
|
|
static type = 'MusicInlineBadge';
|
|
|
|
icon_type: string;
|
|
label: string;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.icon_type = data.icon.iconType;
|
|
this.label = data.accessibilityData.accessibilityData.label;
|
|
}
|
|
}
|
|
|
|
export default MusicInlineBadge; |