Files
YouTube.js/src/parser/classes/CopyLink.ts

18 lines
452 B
TypeScript

import { YTNode } from '../helpers.js';
import { Parser, type RawNode } from '../index.js';
import Button from './Button.js';
export default class CopyLink extends YTNode {
static type = 'CopyLink';
copy_button: Button | null;
short_url: string;
style: string;
constructor(data: RawNode) {
super();
this.copy_button = Parser.parseItem(data.copyButton, Button);
this.short_url = data.shortUrl;
this.style = data.style;
}
}