mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-18 20:12:12 +00:00
* dev: refactor and remove redundant code * docs(music): update `Library` API ref * docs: update examples * chore: update lock file
24 lines
453 B
TypeScript
24 lines
453 B
TypeScript
import Parser from '../index';
|
|
|
|
import { YTNode } from '../helpers';
|
|
|
|
class MusicSideAlignedItem extends YTNode {
|
|
static type = 'MusicSideAlignedItem';
|
|
|
|
start_items?;
|
|
end_items?;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
|
|
if (data.startItems) {
|
|
this.start_items = Parser.parseArray(data.startItems);
|
|
}
|
|
|
|
if (data.endItems) {
|
|
this.end_items = Parser.parseArray(data.endItems);
|
|
}
|
|
}
|
|
}
|
|
|
|
export default MusicSideAlignedItem; |