@gopherium/godmin 0.23.0 → 0.23.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/confirm-dialog.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface ConfirmDialogProps {
|
|
|
12
12
|
/** The label of the button that closes the dialog. */
|
|
13
13
|
cancelLabel: string;
|
|
14
14
|
/** Carries the action out. Return nothing to close at once, or the write's promise to stay busy until it ends. */
|
|
15
|
-
onConfirm: () => void | Promise<
|
|
15
|
+
onConfirm: () => void | Promise<unknown>;
|
|
16
16
|
/** Takes the dialog away after Cancel, Escape, a click outside it, its close button or a confirm that finished. */
|
|
17
17
|
onClose: () => void;
|
|
18
18
|
}
|
package/dist/form-dialog.d.ts
CHANGED
|
@@ -17,7 +17,7 @@ export interface FormDialogProps {
|
|
|
17
17
|
/** What the form does: 16px above the buttons for a create, the default, 20px for an edit, 12px for a copy. */
|
|
18
18
|
kind?: FormKind;
|
|
19
19
|
/** Sends the form. Return the write's promise to keep the button busy until it ends. */
|
|
20
|
-
onSubmit: () => void | Promise<
|
|
20
|
+
onSubmit: () => void | Promise<unknown>;
|
|
21
21
|
/** Takes the dialog away after Cancel, Escape, a click on the dimmed page or the close button. */
|
|
22
22
|
onClose: () => void;
|
|
23
23
|
}
|
package/dist/run-confirm.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export interface RunConfirmProps<Item> {
|
|
|
12
12
|
/** The label of the button that closes the modal. */
|
|
13
13
|
cancelLabel: string;
|
|
14
14
|
/** Runs the action over the items, settling once the list shows how it went. */
|
|
15
|
-
run: (items: Item[]) => Promise<
|
|
15
|
+
run: (items: Item[]) => Promise<unknown>;
|
|
16
16
|
}
|
|
17
17
|
/**
|
|
18
18
|
* Renders a confirmation that runs the action, keeps Cancel inert while it runs and closes once it settles.
|
package/package.json
CHANGED