From 29455754cdfc6692d6402d470eee43ca8269206e Mon Sep 17 00:00:00 2001 From: Matthias Schmidt Date: Fri, 15 Jan 2021 11:14:35 +0100 Subject: [PATCH] Make `options` parameter of `Form/Builder/Dialog` a `Partial` --- .../files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts index f37e78790d..17b88324b4 100644 --- a/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts +++ b/wcfsetup/install/files/ts/WoltLabSuite/Core/Form/Builder/Dialog.ts @@ -29,11 +29,16 @@ class FormBuilderDialog implements AjaxCallbackObject, DialogCallbackObject { protected _options: FormBuilderDialogOptions; protected _additionalSubmitButtons: HTMLButtonElement[]; - constructor(dialogId: string, className: string, actionName: string, options: FormBuilderDialogOptions) { + constructor(dialogId: string, className: string, actionName: string, options: Partial) { this.init(dialogId, className, actionName, options); } - protected init(dialogId: string, className: string, actionName: string, options: FormBuilderDialogOptions): void { + protected init( + dialogId: string, + className: string, + actionName: string, + options: Partial, + ): void { this._dialogId = dialogId; this._className = className; this._actionName = actionName; -- 2.20.1