mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-04 03:51:00 +00:00
feat(parser): Add UnifiedSharePanel
This commit is contained in:
14
src/parser/classes/ThirdPartyShareTargetSection.ts
Normal file
14
src/parser/classes/ThirdPartyShareTargetSection.ts
Normal file
@@ -0,0 +1,14 @@
|
||||
import { type RawNode, Parser } from '../index.js';
|
||||
import { type ObservedArray, YTNode } from '../helpers.js';
|
||||
import ShareTarget from './ShareTarget.js';
|
||||
|
||||
export default class ThirdPartyShareTargetSection extends YTNode {
|
||||
static type = 'ThirdPartyShareTargetSection';
|
||||
|
||||
public share_targets: ObservedArray<ShareTarget>;
|
||||
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.share_targets = Parser.parseArray(data.shareTargets, ShareTarget);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user