reshow-hooks
Advanced tools
Comparing version 0.17.28 to 0.17.29
@@ -8,2 +8,4 @@ "use strict"; | ||
var _callFunc = _interopRequireDefault(require("call-func")); | ||
// @ts-check | ||
/** | ||
@@ -13,3 +15,8 @@ * React useReducer | ||
*/ | ||
/** | ||
* @param {any} setTo | ||
* @param {any} [initVal] | ||
* @param {function} [onChange] | ||
* @returns {reducer} | ||
*/ | ||
var useEnable = function useEnable(setTo, initVal, onChange) { | ||
@@ -16,0 +23,0 @@ var reducer = (0, _react.useReducer)(function () { |
@@ -9,2 +9,8 @@ "use strict"; | ||
var _useEnable2 = _interopRequireDefault(require("./useEnable.js")); | ||
// @ts-check | ||
/** | ||
* @param {function} [onChange] | ||
* @returns {boolean} | ||
*/ | ||
var useLoaded = function useLoaded(onChange) { | ||
@@ -11,0 +17,0 @@ var _useEnable = (0, _useEnable2["default"])(_reshowConstant.T_TRUE, _reshowConstant.T_FALSE, onChange), |
{ | ||
"version": "0.17.28", | ||
"version": "0.17.29", | ||
"name": "reshow-hooks", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -6,2 +6,8 @@ export default useEnable; | ||
*/ | ||
declare function useEnable(setTo: any, initVal: any, onChange: any): [any, import("react").DispatchWithoutAction]; | ||
/** | ||
* @param {any} setTo | ||
* @param {any} [initVal] | ||
* @param {function} [onChange] | ||
* @returns {reducer} | ||
*/ | ||
declare function useEnable(setTo: any, initVal?: any, onChange?: Function): [any, import("react").DispatchWithoutAction]; |
export default useLoaded; | ||
declare function useLoaded(onChange: any): any; | ||
/** | ||
* @param {function} [onChange] | ||
* @returns {boolean} | ||
*/ | ||
declare function useLoaded(onChange?: Function): boolean; |
Sorry, the diff of this file is not supported yet
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
31973
947