@types/fastclick
TypeScript icon, indicating that this package has built-in type declarations

1.0.33 • Public • Published

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

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: Tue, 07 Nov 2023 03:09:37 GMT
  • Dependencies: none

Credits

These definitions were written by Shinnosuke Watanabe.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/fastclick

Weekly Downloads

3,661

Version

1.0.33

License

MIT

Unpacked Size

4.95 kB

Total Files

5

Last publish

Collaborators

  • types