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 Parser from '../index.js';
import Text from './misc/Text.js';
import { YTNode } from '../helpers.js';
import Parser, { RawNode } from '../index.js';
import Text from './misc/Text.js';
class LiveChat extends YTNode {
static type = 'LiveChat';
@@ -19,9 +19,9 @@ class LiveChat extends YTNode {
is_replay: boolean;
constructor(data: any) {
constructor(data: RawNode) {
super();
this.header = Parser.parse(data.header);
this.header = Parser.parseItem(data.header);
this.initial_display_state = data.initialDisplayState;
this.continuation = data.continuations[0]?.reloadContinuationData?.continuation;