Fix parameter type of form builder dialogs' `successCallback` (#4069)
authorMatthias Schmidt <gravatronics@live.com>
Thu, 11 Mar 2021 12:54:01 +0000 (13:54 +0100)
committerGitHub <noreply@github.com>
Thu, 11 Mar 2021 12:54:01 +0000 (13:54 +0100)
Close #4063

ts/WoltLabSuite/Core/Form/Builder/Data.ts

index e84e1d2a7e182710f48516460dfaee8175cf42d7..20a39a7beaba9bcc59fc7d7e6fcd0c4b1b9a9f1f 100644 (file)
@@ -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;
 }