mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-25 07:42:11 +00:00
16 lines
405 B
TypeScript
16 lines
405 B
TypeScript
import Thumbnail from './misc/Thumbnail.ts';
|
|
import { YTNode } from '../helpers.ts';
|
|
import type { RawNode } from '../index.ts';
|
|
|
|
export default class SingleHeroImage extends YTNode {
|
|
static type = 'SingleHeroImage';
|
|
|
|
thumbnails: Thumbnail[];
|
|
style: string;
|
|
|
|
constructor(data: RawNode) {
|
|
super();
|
|
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
|
this.style = data.style;
|
|
}
|
|
} |