mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-30 09:55:18 +00:00
chore: v5.0.0 release
This commit is contained in:
@@ -1,17 +1,16 @@
|
||||
import Thumbnail from './misc/Thumbnail.ts';
|
||||
import { YTNode } from '../helpers.ts';
|
||||
import type { RawNode } from '../index.ts';
|
||||
|
||||
class SingleHeroImage extends YTNode {
|
||||
export default class SingleHeroImage extends YTNode {
|
||||
static type = 'SingleHeroImage';
|
||||
|
||||
thumbnails: Thumbnail[];
|
||||
style: string;
|
||||
|
||||
constructor(data: any) {
|
||||
constructor(data: RawNode) {
|
||||
super();
|
||||
this.thumbnails = Thumbnail.fromResponse(data.thumbnail);
|
||||
this.style = data.style;
|
||||
}
|
||||
}
|
||||
|
||||
export default SingleHeroImage;
|
||||
}
|
||||
Reference in New Issue
Block a user