mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 14:08:06 +00:00
15 lines
432 B
TypeScript
15 lines
432 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import type { RawNode } from '../index.js';
|
|
import { Parser } from '../index.js';
|
|
import TranscriptSearchPanel from './TranscriptSearchPanel.js';
|
|
|
|
export default class Transcript extends YTNode {
|
|
static type = 'Transcript';
|
|
|
|
content: TranscriptSearchPanel | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.content = Parser.parseItem(data.content, TranscriptSearchPanel);
|
|
}
|
|
} |