Files
YouTube.js/deno/src/parser/classes/Alert.ts
2023-04-29 05:15:47 +00:00

16 lines
346 B
TypeScript

import Text from './misc/Text.ts';
import { YTNode } from '../helpers.ts';
import type { RawNode } from '../index.ts';
export default class Alert extends YTNode {
static type = 'Alert';
text: Text;
alert_type: string;
constructor(data: RawNode) {
super();
this.text = new Text(data.text);
this.alert_type = data.type;
}
}