Files
YouTube.js/src/parser/classes/LiveChatParticipantsList.ts
LuanRT 34281e2445 refactor: migrate parsers to TS (#133)
* dev: finish top-level parsers TS migration

* dev: migrate menu renderers to TS

* chore: fix ts errors

* dev: finish ts migration 🎉
2022-08-20 03:18:17 -03:00

18 lines
409 B
TypeScript

import Parser from '../index';
import Text from './misc/Text';
import { YTNode } from '../helpers';
class LiveChatParticipantsList extends YTNode {
static type = 'LiveChatParticipantsList';
title: Text;
participants;
constructor(data: any) {
super();
this.title = new Text(data.title);
this.participants = Parser.parse(data.participants);
}
}
export default LiveChatParticipantsList;