Files
YouTube.js/src/parser/classes/livechat/AddLiveChatTickerItemAction.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

17 lines
376 B
TypeScript

import Parser from '../../index';
import { YTNode } from '../../helpers';
class AddLiveChatTickerItemAction extends YTNode {
static type = 'AddLiveChatTickerItemAction';
item;
duration_sec;
constructor(data: any) {
super();
this.item = Parser.parseItem(data.item);
this.duration_sec = data.durationSec;
}
}
export default AddLiveChatTickerItemAction;