1.2.5 • Published 6 months ago

@types/react-pointable v1.2.5

Weekly downloads
357
License
MIT
Repository
github
Last release
6 months ago

Installation

npm install --save @types/react-pointable

Summary

This package contains type definitions for react-pointable (https://github.com/MilllerTime/react-pointable).

Details

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

index.d.ts

// Type definitions for react-pointable 1.2
// Project: https://github.com/MilllerTime/react-pointable
// Definitions by: Stefan Fochler <https://github.com/istefo>
//                 Dibyo Majumdar <https://github.com/mdibyo>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8

import * as React from 'react';

export type TouchAction = 'auto' | 'none' | 'pan-x' | 'pan-y' | 'manipulation';

export interface PointableProps extends React.HTMLAttributes<Element>, React.SVGAttributes<Element> {
    tagName?: keyof ElementTagNameMap | undefined;
    touchAction?: TouchAction | undefined;
    elementRef?(el: HTMLElement|SVGElement): void;
}

export default class Pointable extends React.Component<PointableProps> {
    static defaultProps: {
        tagName: 'div',
        touchAction: 'auto'
    };
}

Additional Details

  • Last updated: Thu, 08 Jul 2021 22:41:25 GMT
  • Dependencies: @types/react
  • Global values: none

Credits

These definitions were written by Stefan Fochler, and Dibyo Majumdar.

1.2.5

6 months ago

1.2.4

7 months ago

1.2.3

7 months ago

1.2.2

3 years ago

1.2.1

6 years ago

1.2.0

6 years ago

1.1.3

6 years ago

1.1.2

7 years ago

1.1.1

7 years ago

1.1.0

7 years ago