> For the complete documentation index, see [llms.txt](https://minwork.gitbook.io/double-tap-hook/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://minwork.gitbook.io/double-tap-hook/advanced/definition.md).

# Definition

**Pseudocode**

```
useDoubleTap(callback [, threshold] [, options]): bindObj
```

**TypeScript**

```typescript
declare function useDoubleTap<
    Target = Element, 
    Callback extends DoubleTapCallback<Target> = DoubleTapCallback<Target>
>(
    callback: Callback, 
    threshold?: number, 
    options?: DoubleTapOptions<Target>
): DoubleTapResult<Target, Callback>;
```
