Merge pull request #8757 from chrootsu/lodash-memoize

lodash: changed _.memoize
This commit is contained in:
Masahiro Wakame
2016-03-31 00:47:26 +09:00
4 changed files with 84 additions and 24 deletions
+8
View File
@@ -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 {
/**