Files
YouTube.js/deno/src/parser/classes/CompactLink.ts
2023-04-29 05:15:47 +00:00

19 lines
524 B
TypeScript

import Text from './misc/Text.ts';
import NavigationEndpoint from './NavigationEndpoint.ts';
import { YTNode } from '../helpers.ts';
import type { RawNode } from '../index.ts';
export default class CompactLink extends YTNode {
static type = 'CompactLink';
title: string;
endpoint: NavigationEndpoint;
style: string;
constructor(data: RawNode) {
super();
this.title = new Text(data.title).toString();
this.endpoint = new NavigationEndpoint(data.navigationEndpoint);
this.style = data.style;
}
}