mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-28 17:17:03 +00:00
18 lines
438 B
TypeScript
18 lines
438 B
TypeScript
import { YTNode } from '../helpers.ts';
|
|
import type { RawNode } from '../index.ts';
|
|
import Text from './misc/Text.ts';
|
|
|
|
export default class TranscriptSectionHeader extends YTNode {
|
|
static type = 'TranscriptSectionHeader';
|
|
|
|
start_ms: string;
|
|
end_ms: string;
|
|
snippet: Text;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.start_ms = data.startMs;
|
|
this.end_ms = data.endMs;
|
|
this.snippet = new Text(data.snippet);
|
|
}
|
|
} |