mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
19 lines
437 B
TypeScript
19 lines
437 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { type RawNode } from '../index.js';
|
|
import { Text } from '../misc.js';
|
|
|
|
export default class Factoid extends YTNode {
|
|
static type = 'Factoid';
|
|
|
|
label: Text;
|
|
value: Text;
|
|
accessibility_text: String;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.label = new Text(data.label);
|
|
this.value = new Text(data.value);
|
|
this.accessibility_text = data.accessibilityText;
|
|
}
|
|
}
|