feat: add parser support for MultiImage community posts (#298)

This commit is contained in:
ChunkyProgrammer
2023-01-29 12:39:46 -05:00
committed by GitHub
parent ceefbed98c
commit de61782f1a
2 changed files with 19 additions and 0 deletions

View File

@@ -0,0 +1,17 @@
import Parser from '../index';
import BackstageImage from './BackstageImage';
import { YTNode } from '../helpers';
class PostMultiImage extends YTNode {
static type = 'PostMultiImage';
images : BackstageImage[];
constructor(data: any) {
super();
this.images = Parser.parseArray(data.images, BackstageImage);
}
}
export default PostMultiImage;