Fix 'show' and 'hide' properties in dialog, fix union type, in 'jqueryui'.

This commit is contained in:
Daniel Rosenwasser
2015-08-12 12:32:49 -07:00
parent 2ffed1fde1
commit bb830c2a2d

View File

@@ -344,7 +344,8 @@ declare module JQueryUI {
dialogClass?: string;
disabled?: boolean;
draggable?: boolean;
height?: any; // number or string
height?: number | string;
hide?: boolean | number | string | DialogShowHideOptions;
maxHeight?: number;
maxWidth?: number;
minHeight?: number;
@@ -352,7 +353,7 @@ declare module JQueryUI {
modal?: boolean;
position?: any; // object, string or []
resizable?: boolean;
show?: any; // number, string or object
show?: boolean | number | string | DialogShowHideOptions;
stack?: boolean;
title?: string;
width?: any; // number or string
@@ -361,6 +362,13 @@ declare module JQueryUI {
close?: DialogEvent;
}
interface DialogShowHideOptions {
effect: string;
delay?: number;
duration?: number;
easing?: string;
}
interface DialogUIParams {
}
@@ -799,7 +807,7 @@ declare module JQueryUI {
interface EffectOptions {
effect: string;
easing?: string;
duration: any;
duration?: number;
complete: Function;
}