Files
YouTube.js/src/parser/classes/ClipSection.ts
JellyBrick 9007b65237 feat(Parser): Add ClipSection (#532)
* feat: add `ClipSection`

* fix: Update src/parser/classes/ClipCreation.ts

---------

Co-authored-by: absidue <48293849+absidue@users.noreply.github.com>
2023-11-30 21:29:18 -03:00

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 ]);
}
}