use-debounce
Advanced tools
Comparing version 9.0.3 to 9.0.4
@@ -35,3 +35,3 @@ export interface CallOptions { | ||
*/ | ||
export interface DebouncedState<T extends (...args: any[]) => ReturnType<T>> extends ControlFunctions { | ||
export interface DebouncedState<T extends (...args: any) => ReturnType<T>> extends ControlFunctions { | ||
(...args: Parameters<T>): ReturnType<T> | undefined; | ||
@@ -38,0 +38,0 @@ } |
@@ -54,2 +54,2 @@ import { CallOptions, DebouncedState } from './useDebouncedCallback'; | ||
*/ | ||
export default function useThrottledCallback<T extends (...args: any[]) => ReturnType<T>>(func: T, wait: number, { leading, trailing }?: CallOptions): DebouncedState<T>; | ||
export default function useThrottledCallback<T extends (...args: any) => ReturnType<T>>(func: T, wait: number, { leading, trailing }?: CallOptions): DebouncedState<T>; |
{ | ||
"name": "use-debounce", | ||
"version": "9.0.3", | ||
"version": "9.0.4", | ||
"description": "Debounce hook for react", | ||
@@ -12,14 +12,6 @@ "source": "src/index.ts", | ||
".": { | ||
"node": { | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.module.js", | ||
"require": "./dist/index.js", | ||
"import": "./dist/index.mjs" | ||
}, | ||
"browser": { | ||
"types": "./dist/index.d.ts", | ||
"import": "./dist/index.module.js", | ||
"require": "./dist/index.js" | ||
}, | ||
"default": "./dist/index.module.js" | ||
"types": "./dist/index.d.ts", | ||
"module": "./dist/index.module.js", | ||
"import": "./dist/index.mjs", | ||
"require": "./dist/index.js" | ||
}, | ||
@@ -26,0 +18,0 @@ "./package.json": "./package.json" |
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
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
105823