mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-09-11 11:50:54 +08:00
Merge pull request #8757 from chrootsu/lodash-memoize
lodash: changed _.memoize
This commit is contained in:
Vendored
+8
@@ -10545,6 +10545,7 @@ declare module _ {
|
||||
* storing the result based on the arguments provided to the memoized function. By default, the first argument
|
||||
* provided to the memoized function is coerced to a string and used as the cache key. The func is invoked with
|
||||
* the this binding of the memoized function.
|
||||
*
|
||||
* @param func The function to have its output memoized.
|
||||
* @param resolver The function to resolve the cache key.
|
||||
* @return Returns the new memoizing function.
|
||||
@@ -10562,6 +10563,13 @@ declare module _ {
|
||||
memoize(resolver?: Function): LoDashImplicitObjectWrapper<T & MemoizedFunction>;
|
||||
}
|
||||
|
||||
interface LoDashExplicitObjectWrapper<T> {
|
||||
/**
|
||||
* @see _.memoize
|
||||
*/
|
||||
memoize(resolver?: Function): LoDashExplicitObjectWrapper<T & MemoizedFunction>;
|
||||
}
|
||||
|
||||
//_.overArgs (was _.modArgs)
|
||||
interface LoDashStatic {
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user