// Type definitions for react-pointable 1.2 // Project: https://github.com/MilllerTime/react-pointable // Definitions by: Stefan Fochler // Dibyo Majumdar // 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, React.SVGAttributes { tagName?: keyof ElementTagNameMap; touchAction?: TouchAction; elementRef?(el: HTMLElement|SVGElement): void; } export default class Pointable extends React.Component { static defaultProps: { tagName: 'div', touchAction: 'auto' }; }