We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ad27eca commit 1364cb5Copy full SHA for 1364cb5
plugins/dialog/guest-js/index.ts
@@ -82,16 +82,11 @@ interface SaveDialogOptions {
82
*
83
* @since 2.3.0
84
*/
85
-export enum MessageDialogDefaultButtons {
86
- /** A single `Ok` button with OS default dialog text */
87
- Ok = 'Ok',
88
- /** 2 buttons `Ok` and `Cancel` with OS default dialog texts */
89
- OkCancel = 'OkCancel',
90
- /** 2 buttons `Yes` and `No` with OS default dialog texts */
91
- YesNo = 'YesNo',
92
- /** 3 buttons `Yes`, `No` and `Cancel` with OS default dialog texts */
93
- YesNoCancel = 'YesNoCancel'
94
-}
+export type MessageDialogDefaultButtons =
+ | 'Ok'
+ | 'OkCancel'
+ | 'YesNo'
+ | 'YesNoCancel'
95
96
/**
97
* The Yes, No and Cancel buttons of a message dialog.
0 commit comments