refactor!: fix inconsistent use of SuperParsedResult

This commit is contained in:
LuanRT
2022-08-07 06:15:55 -03:00
parent 709c448053
commit 40fc24b043
11 changed files with 84 additions and 78 deletions

View File

@@ -1,5 +1,9 @@
import Parser from '../index';
import NavigationEndpoint from './NavigationEndpoint';
import SectionList from './SectionList';
import MusicQueue from './MusicQueue';
import RichGrid from './RichGrid';
import { YTNode } from '../helpers';
class Tab extends YTNode {
@@ -15,7 +19,7 @@ class Tab extends YTNode {
this.title = data.title || 'N/A';
this.selected = data.selected || false;
this.endpoint = new NavigationEndpoint(data.endpoint);
this.content = Parser.parse(data.content);
this.content = Parser.parseItem<SectionList | MusicQueue | RichGrid>(data.content, [ SectionList, MusicQueue, RichGrid ]);
}
}