Socket
Socket
Sign inDemoInstall

@types/lodash

Package Overview
Dependencies
0
Maintainers
1
Versions
202
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 4.14.160 to 4.14.161

4

lodash/common/common.d.ts

@@ -257,6 +257,2 @@ import _ = require("../index");

| NumericDictionary<unknown>;
interface Cancelable {
cancel(): void;
flush(): void;
}
type PartialShallow<T> = {

@@ -263,0 +259,0 @@ [P in keyof T]?: T[P] extends object ? object : T[P]

50

lodash/common/function.d.ts

@@ -371,2 +371,28 @@ import _ = require("../index");

}
interface DebouncedFunc<T extends (...args: any[]) => any> {
/**
* Call the original function, but applying the debounce rules.
*
* If the debounced function can be run immediately, this calls it and returns its return
* value.
*
* Otherwise, it returns the return value of the last invokation, or undefined if the debounced
* function was not invoked yet.
*/
(...args: Parameters<T>): ReturnType<T> | undefined;
/**
* Throw away any pending invokation of the debounced function.
*/
cancel(): void;
/**
* If there is a pending invokation of the debounced function, invoke it immediately and return
* its return value.
*
* Otherwise, return the value from the last invokation, or undefined if the debounced function
* was never invoked.
*/
flush(): ReturnType<T> | undefined;
}
interface LoDashStatic {

@@ -393,3 +419,3 @@ /**

*/
debounce<T extends (...args: any) => any>(func: T, wait?: number, options?: DebounceSettings): T & Cancelable;
debounce<T extends (...args: any) => any>(func: T, wait?: number, options?: DebounceSettings): DebouncedFunc<T>;
}

@@ -400,3 +426,6 @@ interface Function<T extends (...args: any) => any> {

*/
debounce(wait?: number, options?: DebounceSettings): Function<T & Cancelable>;
debounce(
wait?: number,
options?: DebounceSettings
): T extends (...args: any[]) => any ? Function<DebouncedFunc<T>> : never;
}

@@ -407,3 +436,6 @@ interface FunctionChain<T extends (...args: any) => any> {

*/
debounce(wait?: number, options?: DebounceSettings): FunctionChain<T & Cancelable>;
debounce(
wait?: number,
options?: DebounceSettings
): T extends (...args: any[]) => any ? FunctionChain<DebouncedFunc<T>> : never;
}

@@ -1331,3 +1363,3 @@ interface LoDashStatic {

*/
throttle<T extends (...args: any) => any>(func: T, wait?: number, options?: ThrottleSettings): T & Cancelable;
throttle<T extends (...args: any) => any>(func: T, wait?: number, options?: ThrottleSettings): DebouncedFunc<T>;
}

@@ -1338,3 +1370,6 @@ interface Function<T extends (...args: any) => any> {

*/
throttle(wait?: number, options?: ThrottleSettings): Function<T & Cancelable>;
throttle(
wait?: number,
options?: ThrottleSettings
): T extends (...args: any[]) => any ? Function<DebouncedFunc<T>> : never;
}

@@ -1345,3 +1380,6 @@ interface FunctionChain<T extends (...args: any) => any> {

*/
throttle(wait?: number, options?: ThrottleSettings): FunctionChain<T & Cancelable>;
throttle(
wait?: number,
options?: ThrottleSettings
): T extends (...args: any[]) => any ? FunctionChain<DebouncedFunc<T>> : never;
}

@@ -1348,0 +1386,0 @@ interface LoDashStatic {

{
"name": "@types/lodash",
"version": "4.14.160",
"version": "4.14.161",
"description": "TypeScript definitions for Lo-Dash",

@@ -62,4 +62,4 @@ "license": "MIT",

"dependencies": {},
"typesPublisherContentHash": "f5c8c39f6a7739f2b2bf569e2f256090e165b6e99efa51eb30cae10b8c230fe2",
"typesPublisherContentHash": "011b5fc799b8be3807cea4d6cd1921b6cdbb3abdc85f4aeecabddac1c04927ee",
"typeScriptVersion": "3.1"
}

@@ -11,3 +11,3 @@ # Installation

### Additional Details
* Last updated: Mon, 24 Aug 2020 17:26:32 GMT
* Last updated: Sat, 29 Aug 2020 01:34:41 GMT
* Dependencies: none

@@ -14,0 +14,0 @@ * Global values: `_`

Sorry, the diff of this file is too big to display

SocketSocket SOC 2 Logo

Product

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

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc