@os-design/use-interval
Advanced tools
Comparing version 1.0.17 to 1.0.18
@@ -1,3 +0,3 @@ | ||
declare const useInterval: (callback: Function, delay: number | null) => void; | ||
declare const useInterval: (callback: () => void, delay: number | null) => void; | ||
export default useInterval; | ||
//# sourceMappingURL=index.d.ts.map |
{ | ||
"name": "@os-design/use-interval", | ||
"version": "1.0.17", | ||
"version": "1.0.18", | ||
"license": "UNLICENSED", | ||
@@ -26,3 +26,3 @@ "repository": "git@gitlab.com:os-team/libs/os-design.git", | ||
"build:types": "tsc --emitDeclarationOnly --declaration --declarationDir dist/types", | ||
"build": "yarn clean && npm-run-all build:*", | ||
"build": "yarn clean && npm-run-all 'build:*'", | ||
"ncu": "ncu -u" | ||
@@ -36,3 +36,3 @@ }, | ||
}, | ||
"gitHead": "f838bd8885cdaf45e62a3b61fa2f83f2d2036e09" | ||
"gitHead": "2605fbf8f46c78800cd4ba6dcb0dd895a893bf96" | ||
} |
import { useEffect, useRef } from 'react'; | ||
const useInterval = (callback: Function, delay: number | null): void => { | ||
const callbackRef = useRef<Function>(); | ||
const useInterval = (callback: () => void, delay: number | null): void => { | ||
const callbackRef = useRef<() => void>(); | ||
@@ -6,0 +6,0 @@ useEffect(() => { |
Sorry, the diff of this file is not supported yet
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
6481