mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
* feat(react-dependents): update to ts 2.8 * fix version mismatches * remove package.json * post merge updates * add package.json back again
24 lines
823 B
TypeScript
24 lines
823 B
TypeScript
// 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;
|
|
touchAction?: TouchAction;
|
|
elementRef?(el: HTMLElement|SVGElement): void;
|
|
}
|
|
|
|
export default class Pointable extends React.Component<PointableProps> {
|
|
static defaultProps: {
|
|
tagName: 'div',
|
|
touchAction: 'auto'
|
|
};
|
|
}
|