diff --git a/types/jquery-editable-select/index.d.ts b/types/jquery-editable-select/index.d.ts new file mode 100644 index 0000000000..43ae7065ae --- /dev/null +++ b/types/jquery-editable-select/index.d.ts @@ -0,0 +1,71 @@ +// Type definitions for jquery-editable-select 2.2 +// Project: https://github.com/indrimuska/jquery-editable-select +// Definitions by: Vincent Biret +// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped +// TypeScript Version: 2.3 + +/// + +declare namespace JQueryEditableSelect { + interface EditableSelectOptions { + /** + * Filter (or not) items in list while typing. + */ + filter?: boolean; + /** + * Easing used for showing and hiding the dropdown list. + */ + effects?: 'default' | 'slide' | 'fade'; + /** + * Duration of the easings (in milliseconds). + */ + duration?: number | 'fast' | 'slow'; + /** + * Where to append the dropdown list in the DOM. + */ + appendTo?: string | JQuery; + /** + * How dropdown list is triggered. + */ + trigger?: 'focus'| 'manual'; + } +} + +interface JQuery { + /** + * Transforms the