Socket
Socket
Sign inDemoInstall

debounce-fn

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

debounce-fn - npm Package Compare versions

Comparing version 3.0.0 to 3.0.1

19

index.d.ts

@@ -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;

2

package.json
{
"name": "debounce-fn",
"version": "3.0.0",
"version": "3.0.1",
"description": "Debounce a function",

@@ -5,0 +5,0 @@ "license": "MIT",

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc