refactor(parser): fix many minor inconsistencies

This commit is contained in:
LuanRT
2023-03-15 06:43:04 -03:00
parent 1a2fc3abd7
commit 3d3436472f
35 changed files with 144 additions and 144 deletions

View File

@@ -1,6 +1,6 @@
import Text from './misc/Text.js';
import Parser from '../index.js';
import { YTNode } from '../helpers.js';
import Parser, { RawNode } from '../index.js';
import Text from './misc/Text.js';
class EmergencyOnebox extends YTNode {
static type = 'EmergencyOnebox';
@@ -9,11 +9,11 @@ class EmergencyOnebox extends YTNode {
first_option;
menu;
constructor(data: any) {
constructor(data: RawNode) {
super();
this.title = new Text(data.title);
this.first_option = Parser.parse(data.firstOption);
this.menu = Parser.parse(data.menu);
this.first_option = Parser.parseItem(data.firstOption);
this.menu = Parser.parseItem(data.menu);
}
}