noop(); pop(); map();

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

    1.0.4 • Public • Published

    Installation

    npm install --save @types/react-hammerjs

    Summary

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

    Details

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

    index.d.ts

    // Type definitions for react-hammerjs 1.0
    // Project: https://github.com/JedWatson/react-hammerjs#readme
    // Definitions by: Jason Unger <https://github.com/jsonunger>
    //                 Cecchi MacNaughton <https://github.com/cecchi>
    // Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
    // TypeScript Version: 2.8
    
    import * as Hammer from "hammerjs";
    import * as React from "react";
    
    type Omit<T, K> = Pick<T, Exclude<keyof T, K>>;
    
    type HammerOptionsWithRecognizers = Omit<HammerOptions, "recognizers"> & {
        recognizers?: { [gesture: string]: RecognizerOptions } | undefined;
    };
    
    declare namespace ReactHammer {
        interface ReactHammerProps {
            children: React.ReactElement;
            direction?:
                | "DIRECTION_NONE"
                | "DIRECTION_LEFT"
                | "DIRECTION_RIGHT"
                | "DIRECTION_UP"
                | "DIRECTION_DOWN"
                | "DIRECTION_HORIZONTAL"
                | "DIRECTION_VERTICAL"
                | "DIRECTION_ALL" | undefined;
            options?: HammerOptionsWithRecognizers | undefined;
            recognizeWith?: { [gesture: string]: Recognizer | string } | undefined;
            vertical?: boolean | undefined;
            action?: HammerListener | undefined;
            onDoubleTap?: HammerListener | undefined;
            onPan?: HammerListener | undefined;
            onPanCancel?: HammerListener | undefined;
            onPanEnd?: HammerListener | undefined;
            onPanStart?: HammerListener | undefined;
            onPinch?: HammerListener | undefined;
            onPinchCancel?: HammerListener | undefined;
            onPinchEnd?: HammerListener | undefined;
            onPinchIn?: HammerListener | undefined;
            onPinchOut?: HammerListener | undefined;
            onPinchStart?: HammerListener | undefined;
            onPress?: HammerListener | undefined;
            onPressUp?: HammerListener | undefined;
            onRotate?: HammerListener | undefined;
            onRotateCancel?: HammerListener | undefined;
            onRotateEnd?: HammerListener | undefined;
            onRotateMove?: HammerListener | undefined;
            onRotateStart?: HammerListener | undefined;
            onSwipe?: HammerListener | undefined;
            onSwipeRight?: HammerListener | undefined;
            onSwipeLeft?: HammerListener | undefined;
            onSwipeUp?: HammerListener | undefined;
            onSwipeDown?: HammerListener | undefined;
            onTap?: HammerListener | undefined;
        }
    }
    declare const ReactHammer: React.ComponentClass<ReactHammer.ReactHammerProps>;
    export = ReactHammer;

    Additional Details

    Credits

    These definitions were written by Jason Unger, and Cecchi MacNaughton.

    Keywords

    none

    Install

    npm i @types/react-hammerjs

    DownloadsWeekly Downloads

    6,265

    Version

    1.0.4

    License

    MIT

    Unpacked Size

    7.98 kB

    Total Files

    4

    Last publish

    Collaborators

    • types