Skip to content

Commit 1364cb5

Browse files
committed
convert back into union
1 parent ad27eca commit 1364cb5

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

plugins/dialog/guest-js/index.ts

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -82,16 +82,11 @@ interface SaveDialogOptions {
8282
*
8383
* @since 2.3.0
8484
*/
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-
}
85+
export type MessageDialogDefaultButtons =
86+
| 'Ok'
87+
| 'OkCancel'
88+
| 'YesNo'
89+
| 'YesNoCancel'
9590

9691
/**
9792
* The Yes, No and Cancel buttons of a message dialog.

0 commit comments

Comments
 (0)