Skip to content

Instantly share code, notes, and snippets.

@webbiesdk
Last active February 11, 2016 11:19
Show Gist options
  • Save webbiesdk/fc495c33bbae30add3e1 to your computer and use it in GitHub Desktop.
Save webbiesdk/fc495c33bbae30add3e1 to your computer and use it in GitHub Desktop.
declare class Awesomplete {
constructor(input: HTMLElement | string, o: Object);
static all: Array<any>;
static $$: (expr: string | NodeSelector, con?: any) => NodeList;
static ITEM: (text: string, input: string) => HTMLElement;
static $: {
(expr: string | Element, con?: NodeSelector) : string | Element;
regExpEscape: (s: {replace: (arg0: RegExp, arg1: string) => void}) => any;
create: (tag: string, o: any) => HTMLElement;
fire: (target: EventTarget, type: string, properties: any) => any;
siblingIndex: (el: Element) => number;
};
static FILTER_STARTSWITH: (text: string, input: string) => boolean;
static FILTER_CONTAINS: (text: string, input: string) => boolean;
static SORT_BYLENGTH: (a: number | any[], b: number | any[]) => number;
static REPLACE: (text: any) => void;
next: () => void;
container: HTMLElement;
select: (selected?: HTMLElement, originalTarget?: HTMLElement) => void;
previous: () => void;
index: number;
opened: number;
list: string | string[] | Element;
input: HTMLElement | string;
goto: (i: number) => void;
ul: HTMLElement;
close: () => void;
evaluate: () => void;
selected: boolean;
open: () => void;
status: HTMLElement;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment