reshow-hooks
Advanced tools
Comparing version 0.17.40 to 0.17.41
@@ -21,2 +21,5 @@ "use strict"; | ||
var useEnable = function useEnable(setTo, initVal, onChange) { | ||
if (setTo === void 0) { | ||
setTo = true; | ||
} | ||
var reducer = (0, _react.useReducer)(function () { | ||
@@ -23,0 +26,0 @@ return (0, _callFunc["default"])(onChange, [setTo]) || setTo; |
{ | ||
"version": "0.17.40", | ||
"version": "0.17.41", | ||
"name": "reshow-hooks", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -12,2 +12,2 @@ export default useEnable; | ||
*/ | ||
declare function useEnable(setTo: any, initVal?: any, onChange?: Function): [any, import("react").DispatchWithoutAction]; | ||
declare function useEnable(setTo?: any, initVal?: any, onChange?: Function): [any, import("react").DispatchWithoutAction]; |
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
34287
1034