Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/throttle-debounce

Package Overview
Dependencies
Maintainers
1
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/throttle-debounce - npm Package Compare versions

Comparing version 1.1.0 to 1.1.1

30

throttle-debounce/index.d.ts
// Type definitions for throttle-debounce 1.1
// Project: https://github.com/niksy/throttle-debounce
// Definitions by: Marek Buchar <https://github.com/czbuchi>, Frank Li <https://github.com/franklixuefei>
// Definitions by: Marek Buchar <https://github.com/czbuchi>, Frank Li <https://github.com/franklixuefei>, Thomas Oddsund <https://github.com/oddsund>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export {};
interface Cancel {
cancel: () => void;
}
export type throttle<T> = T & Cancel;
export type debounce<T> = throttle<T>;
/**

@@ -37,4 +46,4 @@ * Throttle execution of a function. Especially useful for rate limiting

callback: T,
debounceMode?: boolean,
): T;
debounceMode?: boolean
): throttle<T>;

@@ -64,4 +73,4 @@ /**

callback: T,
debounceMode?: boolean,
): T;
debounceMode?: boolean
): throttle<T>;

@@ -92,3 +101,7 @@ /**

*/
export function debounce<T extends (...args: any[]) => any>(delay: number, atBegin: boolean, callback: T): T;
export function debounce<T extends (...args: any[]) => any>(
delay: number,
atBegin: boolean,
callback: T
): debounce<T>;

@@ -112,2 +125,5 @@ /**

*/
export function debounce<T extends (...args: any[]) => any>(delay: number, callback: T): T;
export function debounce<T extends (...args: any[]) => any>(
delay: number,
callback: T
): debounce<T>;
{
"name": "@types/throttle-debounce",
"version": "1.1.0",
"version": "1.1.1",
"description": "TypeScript definitions for throttle-debounce",

@@ -16,13 +16,20 @@ "license": "MIT",

"githubUsername": "franklixuefei"
},
{
"name": "Thomas Oddsund",
"url": "https://github.com/oddsund",
"githubUsername": "oddsund"
}
],
"main": "",
"types": "index",
"repository": {
"type": "git",
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git"
"url": "https://github.com/DefinitelyTyped/DefinitelyTyped.git",
"directory": "types/throttle-debounce"
},
"scripts": {},
"dependencies": {},
"typesPublisherContentHash": "2eeb9f13a3bdca9abecc3fc996c206769cd796ec96b3dc36e68a5a83c09d6fb7",
"typesPublisherContentHash": "4914948223ffb70ec0e42545cd0c62605083eba6cee3e76888cbc5dacd8aeeae",
"typeScriptVersion": "2.0"
}

@@ -5,3 +5,3 @@ # Installation

# Summary
This package contains type definitions for throttle-debounce (https://github.com/niksy/throttle-debounce).
This package contains type definitions for throttle-debounce ( https://github.com/niksy/throttle-debounce ).

@@ -12,3 +12,3 @@ # Details

Additional Details
* Last updated: Mon, 09 Jul 2018 20:32:27 GMT
* Last updated: Tue, 05 Mar 2019 17:51:16 GMT
* Dependencies: none

@@ -18,2 +18,2 @@ * Global values: none

# Credits
These definitions were written by Marek Buchar <https://github.com/czbuchi>, Frank Li <https://github.com/franklixuefei>.
These definitions were written by Marek Buchar <https://github.com/czbuchi>, Frank Li <https://github.com/franklixuefei>, Thomas Oddsund <https://github.com/oddsund>.

Sorry, the diff of this file is not supported yet

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