1 | # Installation
|
2 | > `npm install --save @types/fastclick`
|
3 |
|
4 | # Summary
|
5 | This package contains type definitions for fastclick (https://github.com/ftlabs/fastclick).
|
6 |
|
7 | # Details
|
8 | Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fastclick.
|
9 | ## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fastclick/index.d.ts)
|
10 | ````ts
|
11 | interface FastClickObject {
|
12 | lastTouchIdentifier: number;
|
13 | layer: Element;
|
14 | tapDelay: number;
|
15 | targetElement: any;
|
16 | touchBoundary: number;
|
17 | touchStartX: number;
|
18 | touchStartY: number;
|
19 | trackingClick: boolean;
|
20 | trackingClickStart: number;
|
21 | destroy(): void;
|
22 | determineEventType(targetElement: any): string;
|
23 | findControl(labelElement: any /* EventTarget | HTMLLabelElement */): any;
|
24 | focus(targetElement: any /* EventTarget | Element */): void;
|
25 | getTargetElementFromEventTarget(eventTarget: EventTarget): any;
|
26 | needsClick(target: any /* EventTarget | Element */): boolean;
|
27 | needsFocus(target: any /* EventTarget | Element */): boolean;
|
28 | }
|
29 |
|
30 | interface FastClickOptions {
|
31 | touchBoundary?: number | undefined;
|
32 | tapDelay?: number | undefined;
|
33 | }
|
34 |
|
35 | interface FastClickStatic {
|
36 | new(layer: any, options?: FastClickOptions): FastClickObject;
|
37 | attach(layer: any, options?: FastClickOptions): FastClickObject;
|
38 | }
|
39 |
|
40 | declare module "fastclick" {
|
41 | function fastclick(layer: any, options?: FastClickOptions): FastClickObject;
|
42 | namespace fastclick {
|
43 | var FastClick: FastClickStatic;
|
44 | }
|
45 |
|
46 | export = fastclick;
|
47 | }
|
48 |
|
49 | declare var FastClick: FastClickStatic;
|
50 |
|
51 | ````
|
52 |
|
53 | ### Additional Details
|
54 | * Last updated: Tue, 07 Nov 2023 03:09:37 GMT
|
55 | * Dependencies: none
|
56 |
|
57 | # Credits
|
58 | These definitions were written by [Shinnosuke Watanabe](https://github.com/shinnn).
|
59 |
|
\ | No newline at end of file |