mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-17 12:16:38 +08:00
Fix 'show' and 'hide' properties in dialog, fix union type, in 'jqueryui'.
This commit is contained in:
14
jqueryui/jqueryui.d.ts
vendored
14
jqueryui/jqueryui.d.ts
vendored
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user