Type Alias DialogResultCallback
DialogResultCallback: (
formData: PlainObject,
action: string,
) => unknown | Promise<unknown>
Type declaration
- (formData: PlainObject, action: string): unknown | Promise<unknown>
Parameters
- formData: PlainObject
- action: string
Returns unknown | Promise<unknown>
Result-builder for the generic
dialogprimitive.Invoked at the Foundry boundary when a button is pressed. Receives the parsed form data as a plain object (the boundary owns
FormDataExtendedand the DOM) and the pressed button'saction; its return value becomes the dialog's result. This keeps callers in the logic layer free of any Foundry/DOM code.