Skip to content
Snippets Groups Projects
Commit 42febfb2 authored by Paul Rosenzweig's avatar Paul Rosenzweig
Browse files

pull over EE underscore flow types

parent 6ce4498a
No related branches found
No related tags found
No related merge requests found
......@@ -47,7 +47,10 @@ declare module "underscore" {
declare function object<T>(a: Array<[string, T]>): { [key: string]: T };
declare function every<T>(a: Array<T>, pred: (val: T) => boolean): boolean;
declare function every<T>(
a: Array<T> | { [key: string]: T },
pred: (val: T) => boolean,
): boolean;
declare function some<T>(a: Array<T>, pred: (val: T) => boolean): boolean;
declare function all<T>(a: Array<T>, pred: (val: T) => boolean): boolean;
declare function any<T>(a: Array<T>, pred: (val: T) => boolean): boolean;
......@@ -113,7 +116,7 @@ declare module "underscore" {
declare function flatten(a: Array<any>): Array<any>;
declare function debounce<T: any => any>(func: T): T;
declare function debounce<T: Function>(func: T): T;
declare function partition<T>(
array: T[],
......@@ -127,4 +130,6 @@ declare module "underscore" {
declare function isMatch(object: Object, properties: Object): boolean;
declare function identity<T>(o: T): T;
declare function uniqueId(prefix?: string): string;
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment