Add getPlaylists function (#650)

This commit is contained in:
Brahim Hadriche
2024-04-29 07:09:35 -04:00
committed by GitHub
parent 0602dd2c3d
commit 7315fca1b4
5 changed files with 49 additions and 0 deletions

View File

@@ -0,0 +1,20 @@
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;
}
}