mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
* feat: add `ClipSection` * fix: Update src/parser/classes/ClipCreation.ts --------- Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
20 lines
484 B
TypeScript
20 lines
484 B
TypeScript
import type { ObservedArray } from '../helpers.js';
|
|
import { YTNode } from '../helpers.js';
|
|
|
|
import ClipCreation from './ClipCreation.js';
|
|
|
|
import { Parser } from '../index.js';
|
|
|
|
import type { RawNode } from '../types/index.js';
|
|
|
|
export default class ClipSection extends YTNode {
|
|
static type = 'ClipSection';
|
|
|
|
contents: ObservedArray<ClipCreation> | null;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.contents = Parser.parse(data.contents, true, [ ClipCreation ]);
|
|
}
|
|
}
|