From: Matthias Schmidt Date: Thu, 11 Mar 2021 12:54:01 +0000 (+0100) Subject: Fix parameter type of form builder dialogs' `successCallback` (#4069) X-Git-Tag: 5.4.0_Alpha_1~171 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=155f9dd41571c72b79815783efc0924ff5279ad8;p=GitHub%2FWoltLab%2FWCF.git Fix parameter type of form builder dialogs' `successCallback` (#4069) Close #4063 --- diff --git a/ts/WoltLabSuite/Core/Form/Builder/Data.ts b/ts/WoltLabSuite/Core/Form/Builder/Data.ts index e84e1d2a7e..20a39a7bea 100644 --- a/ts/WoltLabSuite/Core/Form/Builder/Data.ts +++ b/ts/WoltLabSuite/Core/Form/Builder/Data.ts @@ -1,4 +1,5 @@ import { DialogOptions } from "../../Ui/Dialog/Data"; +import { DatabaseObjectActionResponse } from "../../Ajax/Data"; interface InternalFormBuilderData { [key: string]: any; @@ -20,7 +21,7 @@ export interface FormBuilderDialogOptions { dialog: DialogOptions; onSubmit: (formData: FormBuilderData, submitButton: HTMLButtonElement) => void; submitActionName?: string; - successCallback: (returnValues: AjaxResponseReturnValues) => void; + successCallback: (returnValues: DatabaseObjectActionResponse["returnValues"]) => void; usesDboAction: boolean; }