fix(DialogView): Type mismatch (#897)

This commit is contained in:
Dave Nicolson
2025-02-21 23:04:21 +01:00
committed by GitHub
parent e2ee822b9d
commit b731db86c5

View File

@@ -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);
}
}