diff --git a/jqueryui/index.d.ts b/jqueryui/index.d.ts index 808148cfbe..d74cc76c66 100644 --- a/jqueryui/index.d.ts +++ b/jqueryui/index.d.ts @@ -320,6 +320,14 @@ declare namespace JQueryUI { * Additional text to display after the year in the month headers. */ yearSuffix?: string; + /** + * Set to true to automatically hide the datepicker. + */ + autohide?: boolean; + /** + * Set to date to automatically enddate the datepicker. + */ + endDate?: Date; } interface DatepickerFormatDateOptions { @@ -1341,6 +1349,23 @@ interface JQuery { * @param optionName 'buttonText' */ datepicker(methodName: 'option', optionName: 'buttonText'): string; + + /** + * Get the autohide option, after initialization + * + * @param methodName 'option' + * @param optionName 'autohide' + */ + datepicker(methodName: 'option', optionName: 'autohide'): boolean; + + + /** + * Get the endDate after initialization + * + * @param methodName 'option' + * @param optionName 'endDate' + */ + datepicker(methodName: 'option', optionName: 'endDate'): Date; /** * Set the buttonText option, after initialization *