mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-06-22 14:08:06 +00:00
* refactor: move common info into MediaInfo * refactor: better inference on Memo * refactor: improved typesafety in parser methods * refactor: remove PlaylistAuthor in favor of Author * refactor: cleanup live chat parsers - Replace non standard author type with Author class - Remove redundant code * fix: new errors due to changes * fix: pass actions to FormatUtils#toDash * refactor!: merge NavigatableText and Text into single class
18 lines
493 B
TypeScript
18 lines
493 B
TypeScript
import Parser from '../index.js';
|
|
import { YTNode } from '../helpers.js';
|
|
import Button from './Button.js';
|
|
|
|
class LiveChatItemList extends YTNode {
|
|
static type = 'LiveChatItemList';
|
|
|
|
max_items_to_display: string;
|
|
more_comments_below_button: Button | null;
|
|
|
|
constructor(data: any) {
|
|
super();
|
|
this.max_items_to_display = data.maxItemsToDisplay;
|
|
this.more_comments_below_button = Parser.parseItem(data.moreCommentsBelowButton, Button);
|
|
}
|
|
}
|
|
|
|
export default LiveChatItemList; |