Skip to content

Commit

Permalink
Fix TypeScript typings
Browse files Browse the repository at this point in the history
  • Loading branch information
demiazz committed May 3, 2017
1 parent 57e9671 commit 9e878c3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions d.ts/homey.d.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
type CSSClass = string;
type Elements = Elements;
type Elements = Element[];
type EventListener = (event: Event) => any;
type EventTypes = string;
type PredicateFn = (element: Element) => boolean;
type Selector = string;
Expand Down Expand Up @@ -53,5 +54,5 @@ export function remove(element: Element): boolean;
* Events
*/

export function on(Element: Element, eventTypes: EventTypes, listener: Function): () => void;
export function once(Element: Element, eventTypes: EventTypes, listener: Function): () => void;
export function on(element: Element, eventTypes: EventTypes, listener: EventListener): () => void;
export function once(element: Element, eventTypes: EventTypes, listener: EventListener): () => void;

0 comments on commit 9e878c3

Please sign in to comment.