mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 09:06:51 +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
17 lines
485 B
TypeScript
17 lines
485 B
TypeScript
import { YTNode } from '../../helpers.js';
|
|
import type { RawNode } from '../../index.js';
|
|
import Parser from '../../index.js';
|
|
import Transcript from '../Transcript.js';
|
|
|
|
export default class UpdateEngagementPanelAction extends YTNode {
|
|
static type = 'UpdateEngagementPanelAction';
|
|
|
|
target_id: string;
|
|
content: Transcript | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.target_id = data.targetId;
|
|
this.content = Parser.parseItem(data.content, Transcript);
|
|
}
|
|
} |