convert back into union

pull/2641/head
amrbashir 2 months ago
parent ad27eca7e9
commit 1364cb5b99
No known key found for this signature in database

@ -82,16 +82,11 @@ interface SaveDialogOptions {
* *
* @since 2.3.0 * @since 2.3.0
*/ */
export enum MessageDialogDefaultButtons { export type MessageDialogDefaultButtons =
/** A single `Ok` button with OS default dialog text */ | 'Ok'
Ok = 'Ok', | 'OkCancel'
/** 2 buttons `Ok` and `Cancel` with OS default dialog texts */ | 'YesNo'
OkCancel = 'OkCancel', | 'YesNoCancel'
/** 2 buttons `Yes` and `No` with OS default dialog texts */
YesNo = 'YesNo',
/** 3 buttons `Yes`, `No` and `Cancel` with OS default dialog texts */
YesNoCancel = 'YesNoCancel'
}
/** /**
* The Yes, No and Cancel buttons of a message dialog. * The Yes, No and Cancel buttons of a message dialog.

Loading…
Cancel
Save