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

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;
}
}