Skip to content

Commit 52e4899

Browse files
author
Tomas Kirda
authored
Merge pull request devbridge#714 from qqilihq/master
Add static `$.Autocomplete` to typings
2 parents c7f02db + 37d73a9 commit 52e4899

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)