reshow-hooks
Advanced tools
Comparing version 0.17.24 to 0.17.25
@@ -8,2 +8,8 @@ "use strict"; | ||
var _callFunc = _interopRequireDefault(require("call-func")); | ||
//@ts-check | ||
/** | ||
* @param {boolean} [interval] | ||
* @returns {[Function, Function]} | ||
*/ | ||
var useTimer = function useTimer(interval) { | ||
@@ -31,2 +37,7 @@ var timer = (0, _react.useRef)(); | ||
}, []); | ||
/** | ||
* @param {function} func | ||
* @param {number} [delay] | ||
*/ | ||
var run = function run(func, delay) { | ||
@@ -33,0 +44,0 @@ stop(); |
{ | ||
"version": "0.17.24", | ||
"version": "0.17.25", | ||
"name": "reshow-hooks", | ||
@@ -43,2 +43,3 @@ "repository": { | ||
"mocha": "npm run mochaFor -- 'build/es/**/__tests__/*.mjs'", | ||
"test:report": "npm run build && npm run mochaFor -- --reporter mocha-junit-reporter --reporter-options mochaFile=./test_output/mocha.xml 'build/es/**/__tests__/*.mjs'", | ||
"test": "npm run build && npm run mocha", | ||
@@ -45,0 +46,0 @@ "prepublishOnly": "npm run test" |
export default useTimer; | ||
declare function useTimer(interval: any): ((func: any, delay: any) => void)[]; | ||
/** | ||
* @param {boolean} [interval] | ||
* @returns {[Function, Function]} | ||
*/ | ||
declare function useTimer(interval?: boolean): [Function, Function]; |
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
25200
722