Skip to content

Commit

Permalink
fix(DialogView): Type mismatch (#897)
Browse files Browse the repository at this point in the history
  • Loading branch information
dnicolson authored Feb 21, 2025
1 parent e2ee822 commit b731db8
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/parser/classes/DialogView.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,18 +3,19 @@ import { Parser, type RawNode } from '../index.js';
import DialogHeaderView from './DialogHeaderView.js';
import FormFooterView from './FormFooterView.js';
import CreatePlaylistDialogFormView from './CreatePlaylistDialogFormView.js';
import PanelFooterView from './PanelFooterView.js';

export default class DialogView extends YTNode {
static type = 'DialogView';

public header: DialogHeaderView | null;
public footer: FormFooterView | null;
public footer: FormFooterView | PanelFooterView | null;
public custom_content: CreatePlaylistDialogFormView | null;

constructor (data: RawNode) {
super();
this.header = Parser.parseItem(data.header, DialogHeaderView);
this.footer = Parser.parseItem(data.footer, FormFooterView);
this.footer = Parser.parseItem(data.footer, [ FormFooterView, PanelFooterView ]);
this.custom_content = Parser.parseItem(data.customContent, CreatePlaylistDialogFormView);
}
}

0 comments on commit b731db8

Please sign in to comment.