mirror of
https://github.com/wassname/DefinitelyTyped.git
synced 2026-08-28 12:43:06 +08:00
Merge pull request #859 from ashwinr/master
hash function callback to _.memoize() can have any number of arguments
This commit is contained in:
Vendored
+1
-1
@@ -152,7 +152,7 @@ declare module Backbone {
|
||||
fetch(options?: CollectionFetchOptions): JQueryXHR;
|
||||
|
||||
comparator(element: Model): any;
|
||||
comparator(compare: Model, to?: Model): number;
|
||||
comparator(compare: Model, to?: Model): any;
|
||||
|
||||
add(model: Model, options?: AddOptions);
|
||||
add(models: Model[], options?: AddOptions);
|
||||
|
||||
Vendored
+3
-3
@@ -860,7 +860,7 @@ declare module _ {
|
||||
**/
|
||||
export function memoize(
|
||||
fn: Function,
|
||||
hashFn?: (n: any) => string): Function;
|
||||
hashFn?: (...n: any[]) => string): Function;
|
||||
|
||||
/**
|
||||
* Much like setTimeout, invokes function after wait milliseconds. If you pass the optional arguments,
|
||||
@@ -1778,7 +1778,7 @@ declare class _<T> {
|
||||
* Wrapped type `Function`.
|
||||
* @see _.memoize
|
||||
**/
|
||||
memoize(hashFn?: (n: any) => string): Function;
|
||||
memoize(hashFn?: (...n: any[]) => string): Function;
|
||||
|
||||
/**
|
||||
* Wrapped type `Function`.
|
||||
@@ -2544,7 +2544,7 @@ interface _Chain<T> {
|
||||
* Wrapped type `Function`.
|
||||
* @see _.memoize
|
||||
**/
|
||||
memoize(hashFn?: (n: any) => string): _Chain;
|
||||
memoize(hashFn?: (...n: any[]) => string): _Chain;
|
||||
|
||||
/**
|
||||
* Wrapped type `Function`.
|
||||
|
||||
Reference in New Issue
Block a user