debounce-fn
Advanced tools
Comparing version 3.0.0 to 3.0.1
@@ -1,2 +0,2 @@ | ||
declare namespace debounce { | ||
declare namespace debounceFn { | ||
interface Options { | ||
@@ -17,2 +17,11 @@ /** | ||
} | ||
interface ImmediateOptions extends Options { | ||
readonly immediate: true; | ||
} | ||
interface DebouncedFunction<ArgumentsType extends unknown[], ReturnType> { | ||
(...arguments: ArgumentsType): ReturnType; | ||
cancel(): void; | ||
} | ||
} | ||
@@ -39,5 +48,9 @@ | ||
input: (...arguments: ArgumentsType) => ReturnType, | ||
options?: debounce.Options | ||
): ((...arguments: ArgumentsType) => ReturnType | undefined) & {cancel(): void}; | ||
options: debounceFn.ImmediateOptions | ||
): debounceFn.DebouncedFunction<ArgumentsType, ReturnType>; | ||
declare function debounceFn<ArgumentsType extends unknown[], ReturnType>( | ||
input: (...arguments: ArgumentsType) => ReturnType, | ||
options?: debounceFn.Options | ||
): debounceFn.DebouncedFunction<ArgumentsType, ReturnType | undefined>; | ||
export = debounceFn; |
{ | ||
"name": "debounce-fn", | ||
"version": "3.0.0", | ||
"version": "3.0.1", | ||
"description": "Debounce a function", | ||
@@ -5,0 +5,0 @@ "license": "MIT", |
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
5562
76