Skip to content

Commit 37d73a9

Browse files
committed
Add static $.Autocomplete to typings
(used for accessing the `defaults` property)
1 parent 3927f79 commit 37d73a9

File tree

2 files changed

+20
-0
lines changed

2 files changed

+20
-0
lines changed

typings/jquery-autocomplete/jquery.autocomplete-tests.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ input.autocomplete({
5050
}
5151
});
5252

53+
// ----------------------------------------------------------------------------------------
54+
// ----------------------------- TEST AUTOCOMPLETE STATIC ---------------------------------
55+
// ----------------------------------------------------------------------------------------
56+
57+
$.Autocomplete.defaults;
5358

5459
// ----------------------------------------------------------------------------------------
5560
// ------------------------------ TEST INSTANCE METHODS -----------------------------------

typings/jquery-autocomplete/jquery.autocomplete.d.ts

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -257,6 +257,15 @@ interface JQueryAutocompleteOptions {
257257

258258
}
259259

260+
interface AutocompleteStatic {
261+
262+
/**
263+
* Default options for all instances.
264+
*/
265+
defaults: JQueryAutocompleteOptions
266+
267+
}
268+
260269
interface AutocompleteInstance {
261270

262271
/**
@@ -297,6 +306,12 @@ interface AutocompleteInstance {
297306

298307
}
299308

309+
interface JQueryStatic {
310+
311+
Autocomplete: AutocompleteStatic
312+
313+
}
314+
300315
interface JQuery {
301316

302317
/**

0 commit comments

Comments
 (0)