mirror of
https://github.com/LuanRT/YouTube.js.git
synced 2026-07-02 21:52:48 +00:00
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 🎉
This commit is contained in:
17
src/parser/classes/livechat/AddLiveChatTickerItemAction.ts
Normal file
17
src/parser/classes/livechat/AddLiveChatTickerItemAction.ts
Normal file
@@ -0,0 +1,17 @@
|
||||
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;
|
||||
Reference in New Issue
Block a user