Files
YouTube.js/src/parser/classes/PlaylistThumbnailOverlay.ts
2024-12-10 13:50:20 -03:00

17 lines
443 B
TypeScript

import { YTNode } from '../helpers.js';
import { type RawNode } from '../index.js';
import Text from './misc/Text.js';
export default class PlaylistThumbnailOverlay extends YTNode {
static type = 'PlaylistThumbnailOverlay';
public icon_type?: string;
public text: Text;
constructor(data: RawNode) {
super();
if (Reflect.has(data, 'icon'))
this.icon_type = data.icon.iconType;
this.text = new Text(data.text);
}
}