DefinitelyTyped/types/react-tap-event-plugin/react-tap-event-plugin-tests.ts
2017-03-24 14:27:52 -07:00

12 lines
344 B
TypeScript

// since the export is a function, this is the only actual correct way:
import injectTapEventPluginRequire = require("react-tap-event-plugin");
injectTapEventPluginRequire({
shouldRejectClick: function (lastTouchEventTimestamp, clickEventTimestamp) {
return true;
}
});
injectTapEventPluginRequire();
injectTapEventPluginRequire({});