DefinitelyTyped/types/react-dnd-touch-backend/react-dnd-touch-backend-tests.ts
Daniel Król da6e5dabc8 Add react-dnd-touch-backend types (#20770)
* Add react-dnd-touch-backend types

* CS fixes

* Add dom lib
2017-10-20 13:19:43 -07:00

8 lines
305 B
TypeScript

import * as ReactDnd from "react-dnd";
import TouchBackend from "react-dnd-touch-backend";
const component = () => null;
const dndComponent = ReactDnd.DragDropContext(TouchBackend)(component);
const dndComponentMouseEvents = ReactDnd.DragDropContext(TouchBackend({enableMouseEvents: true}))(component);