diff --git a/jqueryui/jqueryui.d.ts b/jqueryui/jqueryui.d.ts index ac8264067..a49a779e2 100644 --- a/jqueryui/jqueryui.d.ts +++ b/jqueryui/jqueryui.d.ts @@ -342,7 +342,7 @@ declare module JQueryUI { interface DialogOptions extends DialogEvents { autoOpen?: boolean; - buttons?: { [buttonText: string]: (event?: Event) => void } | ButtonOptions[]; + buttons?: { [buttonText: string]: (event?: Event) => void } | DialogButtonOptions[]; closeOnEscape?: boolean; closeText?: string; dialogClass?: string; @@ -366,6 +366,14 @@ declare module JQueryUI { close?: DialogEvent; } + interface DialogButtonOptions { + icons?: any; + showText?: string | boolean; + text?: string; + click?: (eventObject: JQueryEventObject) => any; + [attr: string]: any; // attributes for the