-
-
Notifications
You must be signed in to change notification settings - Fork 235
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add parser support for MultiImage community posts (#298)
- Loading branch information
1 parent
ceefbed
commit de61782
Showing
2 changed files
with
19 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters