mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-19 12:31:17 +00:00
* feat: Add support for retrieving transcripts * chore: lint * chore: update docs * chore: Do not include nodes in errors thrown * chore: Improve error messages * fix(ExpandableMetadata): `expanded_content` type mismatch * chore: lint
16 lines
431 B
TypeScript
16 lines
431 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
import { Text } from '../misc.js';
|
|
|
|
export default class FancyDismissibleDialog extends YTNode {
|
|
static type = 'FancyDismissibleDialog';
|
|
|
|
dialog_message: Text;
|
|
confirm_label: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.dialog_message = new Text(data.dialogMessage);
|
|
this.confirm_label = new Text(data.confirmLabel);
|
|
}
|
|
} |