mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
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:
19
src/parser/classes/ClipSection.ts
Normal file
19
src/parser/classes/ClipSection.ts
Normal 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 ]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user