# @types/fastclick

> TypeScript definitions for fastclick

Latest version **1.0.33** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/fastclick
pnpm add @types/fastclick
yarn add @types/fastclick
bun add @types/fastclick
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 1.0.33 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.8 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51437 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/fastclick
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fastclick
- npm.io page: https://npm.io/package/@types/fastclick

## Recent versions

- 1.0.33 (latest) — 2023-11-07
- 1.0.30 (ts3.6) — 2021-07-08
- 1.0.29 (ts3.0) — 2020-05-15
- 1.0.28 (ts2.0) — 2016-09-19
- 1.0.32 — 2023-10-18
- 1.0.31 — 2023-09-14
- 1.0.27 — 2016-07-14
- 1.0.26-alpha — 2016-07-08
- 1.0.25-alpha — 2016-07-04
- 1.0.24-alpha — 2016-07-02
- 1.0.23-alpha — 2016-07-01
- 1.0.22-alpha — 2016-07-01
- 1.0.21-alpha — 2016-05-25
- 1.0.20-alpha — 2016-05-20
- 1.0.15-alpha — 2016-05-19
- … 1 more at https://npm.io/package/@types/fastclick/versions

## README

# 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](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/fastclick/index.d.ts)
````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](https://github.com/shinnn).

---
_Source: https://npm.io/package/@types/fastclick · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
