chore: lint

This commit is contained in:
LuanRT
2022-08-07 06:17:43 -03:00
parent 40fc24b043
commit 4ab2bb744a

View File

@@ -1,29 +0,0 @@
import Parser from '../index';
import Text from './misc/Text';
import NavigationEndpoint from './NavigationEndpoint';
import { YTNode } from '../helpers';
class MusicShelf extends YTNode {
static type = 'MusicShelf';
constructor(data) {
super();
this.title = new Text(data.title).toString();
this.contents = Parser.parse(data.contents);
if (data.bottomEndpoint) {
this.endpoint = new NavigationEndpoint(data.bottomEndpoint);
}
if (data.continuations) {
// TODO: type this
this.continuation = data.continuations?.[0].nextContinuationData.continuation;
}
if (data.bottomText) {
this.bottom_text = new Text(data.bottomText);
}
}
}
export default MusicShelf;