mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-16 23:10:29 +00:00
[awesomplete] Add destroy function (#25426)
This commit is contained in:
@@ -11,6 +11,7 @@ new Awesomplete(input, {
|
||||
|
||||
const awesomplete = new Awesomplete(input);
|
||||
awesomplete.list = ["Ada", "Java", "JavaScript", "LOLCODE", "Node.js", "Ruby on Rails"];
|
||||
awesomplete.destroy();
|
||||
|
||||
new Awesomplete(input, {
|
||||
list: [
|
||||
|
||||
Vendored
+5
-1
@@ -1,6 +1,9 @@
|
||||
// Type definitions for Awesomplete 1.1
|
||||
// Project: https://leaverou.github.io/awesomplete/
|
||||
// Definitions by: webbiesdk <https://github.com/webbiesdk>, Ben Dixon <https://github.com/bmdixon>, Trevor Bekolay <https://github.com/tbekolay>
|
||||
// Definitions by: webbiesdk <https://github.com/webbiesdk>
|
||||
// Ben Dixon <https://github.com/bmdixon>
|
||||
// Trevor Bekolay <https://github.com/tbekolay>
|
||||
// Chris LoPresto <https://github.com/chrislopresto>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
|
||||
declare class Awesomplete {
|
||||
@@ -35,6 +38,7 @@ declare class Awesomplete {
|
||||
selected: boolean;
|
||||
open: () => void;
|
||||
status: HTMLElement;
|
||||
destroy: () => void;
|
||||
}
|
||||
|
||||
declare namespace Awesomplete {
|
||||
|
||||
Reference in New Issue
Block a user