DefinitelyTyped/react-tap-event-plugin/react-tap-event-plugin-tests.ts
2016-07-26 00:22:12 -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({});