refactor: improve home feed parsing (#234)

* chore: update tests

* style: format code

* docs: update API ref
This commit is contained in:
LuanRT
2022-11-12 01:31:11 -03:00
committed by GitHub
parent 95ff1e6c5e
commit da517fe6d1
11 changed files with 89 additions and 20 deletions

View File

@@ -13,7 +13,7 @@ class RichShelf extends YTNode {
constructor(data: any) {
super();
this.title = new Text(data.title);
this.contents = Parser.parse(data.contents);
this.contents = Parser.parseArray(data.contents);
this.endpoint = data.endpoint ? new NavigationEndpoint(data.endpoint) : null;
}
}