feat(parser): Add ImageBannerView (#583)

This commit is contained in:
absidue
2024-01-18 18:41:08 +01:00
committed by GitHub
parent f7b7bbd47a
commit 2073aa910a
3 changed files with 20 additions and 0 deletions

View File

@@ -0,0 +1,16 @@
import { YTNode } from '../helpers.js';
import type { RawNode } from '../index.js';
import Thumbnail from './misc/Thumbnail.js';
export default class ImageBannerView extends YTNode {
static type = 'ImageBannerView';
image: Thumbnail[];
style: string;
constructor(data: RawNode) {
super();
this.image = Thumbnail.fromResponse(data.image);
this.style = data.style;
}
}