mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-17 03:22:15 +00:00
* refactor: move common info into MediaInfo * refactor: better inference on Memo * refactor: improved typesafety in parser methods * refactor: remove PlaylistAuthor in favor of Author * refactor: cleanup live chat parsers - Replace non standard author type with Author class - Remove redundant code * fix: new errors due to changes * fix: pass actions to FormatUtils#toDash * refactor!: merge NavigatableText and Text into single class
20 lines
441 B
TypeScript
20 lines
441 B
TypeScript
import Parser from '../index.js';
|
|
import Button from './Button.js';
|
|
import { YTNode } from '../helpers.js';
|
|
|
|
class CopyLink extends YTNode {
|
|
static type = 'CopyLink';
|
|
|
|
copy_button: Button | null;
|
|
short_url: string;
|
|
style: string;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.copy_button = Parser.parseItem(data.copyButton, Button);
|
|
this.short_url = data.shortUrl;
|
|
this.style = data.style;
|
|
}
|
|
}
|
|
|
|
export default CopyLink; |