mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 11:32:27 +00:00
16 lines
382 B
TypeScript
16 lines
382 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../types/RawResponse.js';
|
|
|
|
export default class BadgeView extends YTNode {
|
|
text: string;
|
|
style: string;
|
|
accessibility_label: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
|
|
this.text = data.badgeText;
|
|
this.style = data.badgeStyle;
|
|
this.accessibility_label = data.accessibilityLabel;
|
|
}
|
|
} |