mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-16 11:02:10 +00:00
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
19 lines
395 B
TypeScript
19 lines
395 B
TypeScript
import Text from './misc/Text';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class CallToActionButton extends YTNode {
|
|
static type = 'CallToActionButton';
|
|
|
|
label: Text;
|
|
icon_type: string;
|
|
style: string;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.label = new Text(data.label);
|
|
this.icon_type = data.icon.iconType;
|
|
this.style = data.style;
|
|
}
|
|
}
|
|
|
|
export default CallToActionButton; |