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>
This commit is contained in:
JellyBrick
2023-12-01 09:29:18 +09:00
committed by GitHub
parent e02139532b
commit 9007b65237
7 changed files with 129 additions and 2 deletions

View File

@@ -0,0 +1,19 @@
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 ]);
}
}