mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-09 11:13:57 +08:00
Made dialog options extend events type, test should have had button callbacks within 'buttons' in 'jqueryui'.
This commit is contained in:
Vendored
+3
-3
@@ -336,9 +336,9 @@ declare module JQueryUI {
|
||||
|
||||
// Dialog //////////////////////////////////////////////////
|
||||
|
||||
interface DialogOptions {
|
||||
interface DialogOptions extends DialogEvents {
|
||||
autoOpen?: boolean;
|
||||
buttons?: any; // object or []
|
||||
buttons?: { [buttonText: string]: () => void } | ButtonOptions[];
|
||||
closeOnEscape?: boolean;
|
||||
closeText?: string;
|
||||
dialogClass?: string;
|
||||
@@ -382,7 +382,7 @@ declare module JQueryUI {
|
||||
resizeStop?: DialogEvent;
|
||||
}
|
||||
|
||||
interface Dialog extends Widget, DialogOptions, DialogEvents {
|
||||
interface Dialog extends Widget, DialogOptions {
|
||||
}
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user