mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-21 05:21:16 +00:00
* dev: finish top-level parsers TS migration
* dev: migrate menu renderers to TS
* chore: fix ts errors
* dev: finish ts migration 🎉
28 lines
632 B
TypeScript
28 lines
632 B
TypeScript
import Text from './misc/Text';
|
|
import { YTNode } from '../helpers';
|
|
|
|
class MusicDescriptionShelf extends YTNode {
|
|
static type = 'MusicDescriptionShelf';
|
|
|
|
description: Text;
|
|
max_collapsed_lines?: string;
|
|
max_expanded_lines?: string;
|
|
footer: Text;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.description = new Text(data.description);
|
|
|
|
if (this.max_collapsed_lines) {
|
|
this.max_collapsed_lines = data.maxCollapsedLines;
|
|
}
|
|
|
|
if (this.max_expanded_lines) {
|
|
this.max_expanded_lines = data.maxExpandedLines;
|
|
}
|
|
|
|
this.footer = new Text(data.footer);
|
|
}
|
|
}
|
|
|
|
export default MusicDescriptionShelf; |