IDialogService.ts
1 import { IDialogOptions } from './IDialogOptions'; 2 import { IFileDialogOptions } from './IFileDialogOptions'; 3 4 export const IDialogServiceSymbol = Symbol.for('IDialogService'); 5 6 /** 7 * Service thats shows simple dialogs. 8 */ 9 export interface IDialogService { 10 /** 11 * Shows a simple dialog that returns a boolean. 12 */ 13 boolDialog(options: IDialogOptions): Promise<boolean>; 14 15 /** 16 * Shows a simple dialog that returns a string. 17 */ 18 stringDialog(options: IDialogOptions): Promise<string>; 19 20 /** 21 * Shows a simple dialog that returns a file. 22 */ 23 fileDialog(options: IFileDialogOptions): Promise<any>; 24 }