message: [Improvement] Dialog: type definition
diff: +type DialogAction = 'confirm' | 'cancel';
  +type DialogDone = (close: boolean) => void;
  +
  export type DialogOptions = {
  title?: string;
  message?: string;
  overlay?: boolean;
  lockScroll?: boolean;
  - beforeClose?: (action: string, done: Function) => void;
  confirmButtonText?: string;
  cancelButtonText?: string;
  showConfirmButton?: boolean;
  showCancelButton?: boolean;
  closeOnClickOverlay?: boolean;
  + beforeClose?: (action: DialogAction, done: DialogDone) => void;
  }
  export interface Dialog {
  - (options: DialogOptions): Promise<any>;
  - alert(options: DialogOptions): Promise<any>;
  - confirm(options: DialogOptions): Promise<any>;
  + (options: DialogOptions): Promise<DialogAction>;
  + alert(options: DialogOptions): Promise<DialogAction>;
  + confirm(options: DialogOptions): Promise<DialogAction>;
  close(): void;
  install(): void;
  setDefaultOptions(options: DialogOptions): void;
  