1.0.33 • Published 7 months ago
@types/fastclick v1.0.33
Installation
npm install --save @types/fastclick
Summary
This package contains type definitions for FastClick (https://github.com/ftlabs/fastclick).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fastclick.
index.d.ts
// Type definitions for FastClick v1.0.3
// Project: https://github.com/ftlabs/fastclick
// Definitions by: Shinnosuke Watanabe <https://github.com/shinnn>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
interface FastClickObject {
lastTouchIdentifier: number;
layer: Element;
tapDelay: number;
targetElement: any;
touchBoundary: number;
touchStartX: number;
touchStartY: number;
trackingClick: boolean;
trackingClickStart: number;
destroy(): void;
determineEventType(targetElement: any): string;
findControl(labelElement: any /* EventTarget | HTMLLabelElement */): any;
focus(targetElement: any /* EventTarget | Element */): void;
getTargetElementFromEventTarget(eventTarget: EventTarget): any;
needsClick(target: any /* EventTarget | Element */): boolean;
needsFocus(target: any /* EventTarget | Element */): boolean;
}
interface FastClickOptions {
touchBoundary?: number | undefined;
tapDelay?: number | undefined;
}
interface FastClickStatic {
new(layer: any, options?: FastClickOptions): FastClickObject;
attach(layer: any, options?: FastClickOptions): FastClickObject;
}
declare module "fastclick" {
function fastclick(layer: any, options?: FastClickOptions): FastClickObject;
namespace fastclick {
var FastClick: FastClickStatic;
}
export = fastclick;
}
declare var FastClick: FastClickStatic;
Additional Details
- Last updated: Thu, 08 Jul 2021 12:01:29 GMT
- Dependencies: none
- Global values:
FastClick
Credits
These definitions were written by Shinnosuke Watanabe.
1.0.33
7 months ago
1.0.32
7 months ago
1.0.31
8 months ago
1.0.30
3 years ago
1.0.29
4 years ago
1.0.28
8 years ago
1.0.27
8 years ago
1.0.26-alpha
8 years ago
1.0.25-alpha
8 years ago
1.0.24-alpha
8 years ago
1.0.23-alpha
8 years ago
1.0.22-alpha
8 years ago
1.0.21-alpha
8 years ago
1.0.20-alpha
8 years ago
1.0.15-alpha
8 years ago
1.0.14-alpha
8 years ago