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

16 lines
402 B
TypeScript

import { YTNode } from '../helpers.ts';
import type { RawNode } from '../index.ts';
import Text from './misc/Text.ts';
export default class SimpleCardTeaser extends YTNode {
static type = 'SimpleCardTeaser';
message: Text;
prominent: boolean; // @TODO: or string?
constructor(data: RawNode) {
super();
this.message = new Text(data.message);
this.prominent = data.prominent;
}
}