mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-02-09 02:12:51 +00:00
32 lines
1.1 KiB
TypeScript
32 lines
1.1 KiB
TypeScript
// Type definitions for mitsobox 0.1
|
|
// Project: https://github.com/jimfilippou/mitsobox
|
|
// Definitions by: MrClemds <https://github.com/MrClemds>
|
|
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
|
|
|
/**
|
|
* Create a win32 messageBox ok dialog
|
|
*
|
|
* @param title The title of the dialog
|
|
* @param message The message shown in this box
|
|
* @returns A promise witch resolve when the dialog is closed
|
|
*/
|
|
export function ok(title: string, message: string): Promise<void>;
|
|
|
|
/**
|
|
* Create a win32 messageBox okCancel dialog
|
|
*
|
|
* @param title The title of the dialog
|
|
* @param message The message shown in this box
|
|
* @returns A promise witch resolve when the dialog is closed and gives you the button clicked
|
|
*/
|
|
export function okCancel(title: string, message: string): Promise<'OK' | 'CANCEL'>;
|
|
|
|
/**
|
|
* Create a win32 messageBox abortRetryIgnore dialog
|
|
*
|
|
* @param title The title of the dialog
|
|
* @param message The message shown in this box
|
|
* @returns A promise witch resolve when the dialog is closed and gives you the button clicked
|
|
*/
|
|
export function abortRetryIgnore(title: string, message: string): Promise<'ABORT' | 'RETRY' | 'IGNORE'>;
|