1 | interface FastClickObject {
|
2 | lastTouchIdentifier: number;
|
3 | layer: Element;
|
4 | tapDelay: number;
|
5 | targetElement: any;
|
6 | touchBoundary: number;
|
7 | touchStartX: number;
|
8 | touchStartY: number;
|
9 | trackingClick: boolean;
|
10 | trackingClickStart: number;
|
11 | destroy(): void;
|
12 | determineEventType(targetElement: any): string;
|
13 | findControl(labelElement: any ): any;
|
14 | focus(targetElement: any ): void;
|
15 | getTargetElementFromEventTarget(eventTarget: EventTarget): any;
|
16 | needsClick(target: any ): boolean;
|
17 | needsFocus(target: any ): boolean;
|
18 | }
|
19 |
|
20 | interface FastClickOptions {
|
21 | touchBoundary?: number | undefined;
|
22 | tapDelay?: number | undefined;
|
23 | }
|
24 |
|
25 | interface FastClickStatic {
|
26 | new(layer: any, options?: FastClickOptions): FastClickObject;
|
27 | attach(layer: any, options?: FastClickOptions): FastClickObject;
|
28 | }
|
29 |
|
30 | declare module "fastclick" {
|
31 | function fastclick(layer: any, options?: FastClickOptions): FastClickObject;
|
32 | namespace fastclick {
|
33 | var FastClick: FastClickStatic;
|
34 | }
|
35 |
|
36 | export = fastclick;
|
37 | }
|
38 |
|
39 | declare var FastClick: FastClickStatic;
|