mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 14:08:06 +00:00
20 lines
545 B
TypeScript
20 lines
545 B
TypeScript
import { YTNode } from '../helpers.js';
|
|
import { type RawNode } from '../index.js';
|
|
import NavigationEndpoint from './NavigationEndpoint.js';
|
|
|
|
export default class ChipView extends YTNode {
|
|
static type = 'ChipView';
|
|
|
|
text: string;
|
|
display_type: string;
|
|
endpoint: NavigationEndpoint;
|
|
chip_entity_key: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.text = data.text;
|
|
this.display_type = data.displayType;
|
|
this.endpoint = new NavigationEndpoint(data.tapCommand);
|
|
this.chip_entity_key = data.chipEntityKey;
|
|
}
|
|
} |