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

1.1.3 • Public • Published

Installation

npm install --save @types/react-longpressable

Summary

This package contains type definitions for react-longpressable (https://github.com/stardust66/react-longpressable#readme).

Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/react-longpressable.

index.d.ts

import * as React from "react";

export interface LongPressProps {
    onLongPress: (e: React.SyntheticEvent) => void;
    onShortPress?: (e: React.SyntheticEvent) => void;

    /**
     * @default 500ms
     */
    longPressTime?: number;

    /**
     * @default true
     */
    primaryMouseButtonOnly?: boolean;

    /**
     * @default 100ms
     */
    dragThreshold?: number;

    children?: React.ReactNode;
}

export default class LongPress extends React.PureComponent<LongPressProps> {}

Additional Details

  • Last updated: Tue, 07 Nov 2023 09:09:39 GMT
  • Dependencies: @types/react

Credits

These definitions were written by VingeRay.

Readme

Keywords

none

Package Sidebar

Install

npm i @types/react-longpressable

Weekly Downloads

106

Version

1.1.3

License

MIT

Unpacked Size

3.71 kB

Total Files

5

Last publish

Collaborators

  • types