reshow-hooks
Advanced tools
Comparing version 0.17.29 to 0.17.30
@@ -32,3 +32,3 @@ "use strict"; | ||
return (0, _react.useMemo)(function () { | ||
var start = function start() { | ||
var start = function start( /**@type React.MouseEvent*/e) { | ||
var _lastPayload$current = lastPayload.current, | ||
@@ -38,5 +38,5 @@ _lastPayload$current$ = _lastPayload$current.threshold, | ||
onStart = _lastPayload$current.onStart; | ||
(0, _callFunc["default"])(onStart); | ||
(0, _callFunc["default"])(onStart, [e]); | ||
timerRun(function () { | ||
(0, _callFunc["default"])(callback); | ||
(0, _callFunc["default"])(callback, [e]); | ||
}, threshold); | ||
@@ -43,0 +43,0 @@ }; |
{ | ||
"version": "0.17.29", | ||
"version": "0.17.30", | ||
"name": "reshow-hooks", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -18,7 +18,7 @@ export default useLongPress; | ||
declare function useLongPress(callback: Function, payload?: LongPressPayload): { | ||
onTouchStart: () => void; | ||
onTouchStart: (e: React.MouseEvent) => void; | ||
onTouchEnd: () => void; | ||
onMouseDown: () => void; | ||
onMouseDown: (e: React.MouseEvent) => void; | ||
onMouseUp: () => void; | ||
onMouseLeave: () => void; | ||
}; |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
32089