Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

feat(web/RN): update React to v16 and React Native to 0.49

paweldomasb74bede0e7ef
diff --git a/.flowconfig b/.flowconfig
index 25b1dc3304..34d43bae7a 100644
--- a/.flowconfig
+++ b/.flowconfig
@@ -14,12 +14,20 @@
.*/Libraries/react-native/React.js
.*/Libraries/react-native/ReactNative.js
+; Ignore polyfills
+.*/Libraries/polyfills/.*
+
; Ignore packages in node_modules which we (i.e. the jitsi-meet project) have
; seen to cause errors and we have chosen not to fix.
-.*/node_modules/babel-.*
-.*/node_modules/bower/.*
-.*/node_modules/jsonlint/.*
-.*/node_modules/promise/index.js.flow
+.*/node_modules/@atlassian
+.*/node_modules/bower/lib/node_modules/bower-json/test/.*
+.*/node_modules/jsonlint/test/.*
+
+; FIXME Remove once we update past this commit:
+; https://github.com/facebook/react-native/commit/df8d0d1db9203cc87ad3682e6138b2a9ed714365
+.*/node_modules/react-native/local-cli/link/link.js
+
+.*/node_modules/react-native-keep-awake/.*
.*/node_modules/styled-components/.*
.*/\.git/.*
@@ -29,15 +37,12 @@
[libs]
node_modules/react-native/Libraries/react-native/react-native-interface.js
node_modules/react-native/flow
-flow/
[options]
emoji=true
module.system=haste
-experimental.strict_type_args=true
-
; FIXME: munge_underscores should be false but right now there are some errors
; if we change the value to false
; Treats class properties with underscore as private. Disabled because currently
@@ -45,15 +50,22 @@ experimental.strict_type_args=true
; munge_underscores=false
munge_underscores=true
+; FIXME Remove once we update past this commit:
+; https://github.com/facebook/react-native/commit/df8d0d1db9203cc87ad3682e6138b2a9ed714365
+module.name_mapper='^./link/link$' -> 'emptyObject'
+
module.name_mapper='^[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> 'RelativeImageStub'
suppress_type=$FlowIssue
suppress_type=$FlowFixMe
+suppress_type=$FlowFixMeProps
+suppress_type=$FlowFixMeState
suppress_type=$FixMe
-suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(3[0-8]\\|[1-2][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
-suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(3[0-8]\\|1[0-9]\\|[1-2][0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
+suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
+suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(5[0-3]\\|[1-4][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
+suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
suppress_comment=\\(.\\|\n\\)*\\$FlowDisableNextLine
unsafe.enable_getters_and_setters=true
@@ -71,4 +83,4 @@ module.file_ext=.jsx
module.file_ext=.json
[version]
-^0.38.0
+^0.53.0
diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java
index 9cc41b1eeb..3c2188cd2e 100644
--- a/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java
+++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/JitsiMeetView.java
@@ -94,7 +94,7 @@ public class JitsiMeetView extends FrameLayout {
= ReactInstanceManager.builder()
.setApplication(application)
.setBundleAssetName("index.android.bundle")
- .setJSMainModuleName("index.android")
+ .setJSMainModulePath("index.android")
.addPackage(new com.corbt.keepawake.KCKeepAwakePackage())
.addPackage(new com.facebook.react.shell.MainReactPackage())
.addPackage(new com.oblador.vectoricons.VectorIconsPackage())
diff --git a/android/sdk/src/main/java/org/jitsi/meet/sdk/ReactPackageAdapter.java b/android/sdk/src/main/java/org/jitsi/meet/sdk/ReactPackageAdapter.java
index 8340175303..381e396d77 100644
--- a/android/sdk/src/main/java/org/jitsi/meet/sdk/ReactPackageAdapter.java
+++ b/android/sdk/src/main/java/org/jitsi/meet/sdk/ReactPackageAdapter.java
@@ -26,11 +26,6 @@ import java.util.Collections;
import java.util.List;
public class ReactPackageAdapter implements ReactPackage {
- @Override
- public List<Class<? extends JavaScriptModule>> createJSModules() {
- return Collections.emptyList();
- }
-
@Override
public List<NativeModule> createNativeModules(
ReactApplicationContext reactContext) {
diff --git a/app.js b/app.js
index d862b419bf..8a60a26baa 100644
--- a/app.js
+++ b/app.js
@@ -1,5 +1,11 @@
/* application specific logic */
+// FIXME: remove once atlaskit work with React 16
+// It seems that @atlaskit/icon is importing PropTypes from React, but it
+// happens through some glyph coffee script template. It could be that more
+// things are broken there (not only the icon).
+import './react/features/base/react/prop-types-polyfill.js';
+
import 'jquery';
import 'jquery-contextmenu';
import 'jquery-ui';
diff --git a/flow-typed/npm/lodash_v4.x.x.js b/flow-typed/npm/lodash_v4.x.x.js
index 7bdebcd43d..0a7ce632fb 100644
--- a/flow-typed/npm/lodash_v4.x.x.js
+++ b/flow-typed/npm/lodash_v4.x.x.js
@@ -1,30 +1,94 @@
-// flow-typed signature: 4420d5c49e3270b55524360665da4981
-// flow-typed version: 9821eaaefe/lodash_v4.x.x/flow_>=v0.38.x <=v0.46.x
+// flow-typed signature: 350011086a8f7f4dfc6c85c33627094c
+// flow-typed version: 30e72b3fd6/lodash_v4.x.x/flow_>=v0.47.x <=v0.54.x
+
+declare module "lodash" {
+ declare type __CurriedFunction1<A, R, AA: A> =
+ & ((...r: [AA]) => R)
+ declare type CurriedFunction1<A, R> = __CurriedFunction1<A, R, *>
+
+ declare type __CurriedFunction2<A, B, R, AA: A, BB: B> =
+ & ((...r: [AA]) => CurriedFunction1<BB, R>)
+ & ((...r: [AA, BB]) => R)
+ declare type CurriedFunction2<A, B, R> = __CurriedFunction2<A, B, R, *, *>
+
+ declare type __CurriedFunction3<A, B, C, R, AA: A, BB: B, CC: C> =
+ & ((...r: [AA]) => CurriedFunction2<BB, CC, R>)
+ & ((...r: [AA, BB]) => CurriedFunction1<CC, R>)
+ & ((...r: [AA, BB, CC]) => R)
+ declare type CurriedFunction3<A, B, C, R> = __CurriedFunction3<A, B, C, R, *, *, *>
+
+ declare type __CurriedFunction4<A, B, C, D, R, AA: A, BB: B, CC: C, DD: D> =
+ & ((...r: [AA]) => CurriedFunction3<BB, CC, DD, R>)
+ & ((...r: [AA, BB]) => CurriedFunction2<CC, DD, R>)
+ & ((...r: [AA, BB, CC]) => CurriedFunction1<DD, R>)
+ & ((...r: [AA, BB, CC, DD]) => R)
+ declare type CurriedFunction4<A, B, C, D, R> = __CurriedFunction4<A, B, C, D, R, *, *, *, *>
+
+ declare type __CurriedFunction5<A, B, C, D, E, R, AA: A, BB: B, CC: C, DD: D, EE: E> =
+ & ((...r: [AA]) => CurriedFunction4<BB, CC, DD, EE, R>)
+ & ((...r: [AA, BB]) => CurriedFunction3<CC, DD, EE, R>)
+ & ((...r: [AA, BB, CC]) => CurriedFunction2<DD, EE, R>)
+ & ((...r: [AA, BB, CC, DD]) => CurriedFunction1<EE, R>)
+ & ((...r: [AA, BB, CC, DD, EE]) => R)
+ declare type CurriedFunction5<A, B, C, D, E, R> = __CurriedFunction5<A, B, C, D, E, R, *, *, *, *, *>
+
+ declare type __CurriedFunction6<A, B, C, D, E, F, R, AA: A, BB: B, CC: C, DD: D, EE: E, FF: F> =
+ & ((...r: [AA]) => CurriedFunction5<BB, CC, DD, EE, FF, R>)
+ & ((...r: [AA, BB]) => CurriedFunction4<CC, DD, EE, FF, R>)
+ & ((...r: [AA, BB, CC]) => CurriedFunction3<DD, EE, FF, R>)
+ & ((...r: [AA, BB, CC, DD]) => CurriedFunction2<EE, FF, R>)
+ & ((...r: [AA, BB, CC, DD, EE]) => CurriedFunction1<FF, R>)
+ & ((...r: [AA, BB, CC, DD, EE, FF]) => R)
+ declare type CurriedFunction6<A, B, C, D, E, F, R> = __CurriedFunction6<A, B, C, D, E, F, R, *, *, *, *, *, *>
+
+ declare type Curry =
+ & (<A, R>((...r: [A]) => R) => CurriedFunction1<A, R>)
+ & (<A, B, R>((...r: [A, B]) => R) => CurriedFunction2<A, B, R>)
+ & (<A, B, C, R>((...r: [A, B, C]) => R) => CurriedFunction3<A, B, C, R>)
+ & (<A, B, C, D, R>((...r: [A, B, C, D]) => R) => CurriedFunction4<A, B, C, D, R>)
+ & (<A, B, C, D, E, R>((...r: [A, B, C, D, E]) => R) => CurriedFunction5<A, B, C, D, E, R>)
+ & (<A, B, C, D, E, F, R>((...r: [A, B, C, D, E, F]) => R) => CurriedFunction6<A, B, C, D, E, F, R>)
+
+ declare type UnaryFn<A,R> = (a: A) => R;
+
+ declare type Flow = (<A,B,C,D,E,F,G>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, cd: UnaryFn<C,D>, de: UnaryFn<D,E>, ef: UnaryFn<E,F>, fg: UnaryFn<F,G>, ...rest: Array<void>) => UnaryFn<A,G>)
+ & (<A,B,C,D,E,F>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, cd: UnaryFn<C,D>, de: UnaryFn<D,E>, ef: UnaryFn<E,F>, ...rest: Array<void>) => UnaryFn<A,F>)
+ & (<A,B,C,D,E>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, cd: UnaryFn<C,D>, de: UnaryFn<D,E>, ...rest: Array<void>) => UnaryFn<A,E>)
+ & (<A,B,C,D>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, cd: UnaryFn<C,D>, ...rest: Array<void>) => UnaryFn<A,D>)
+ & (<A,B,C>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, ...rest: Array<void>) => UnaryFn<A,C>)
+ & (<A,B>(ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,B>)
+
+declare type FlowRight = & (<A,B,C,D,E,F,G>(fg: UnaryFn<F,G>, ef: UnaryFn<E,F>, de: UnaryFn<D,E>, cd: UnaryFn<C,D>, bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,G>)
+ & (<A,B,C,D,E,F>(ef: UnaryFn<E,F>, de: UnaryFn<D,E>, cd: UnaryFn<C,D>, bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,F>)
+ & (<A,B,C,D,E>(de: UnaryFn<D,E>, cd: UnaryFn<C,D>, bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,E>)
+ & (<A,B,C,D>(cd: UnaryFn<C,D>, bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,D>)
+ & (<A,B,C>(bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,C>)
+ & (<A,B>(ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,B>)
+
-declare module 'lodash' {
declare type TemplateSettings = {
escape?: RegExp,
evaluate?: RegExp,
imports?: Object,
interpolate?: RegExp,
- variable?: string,
+ variable?: string
};
declare type TruncateOptions = {
length?: number,
omission?: string,
- separator?: RegExp|string,
+ separator?: RegExp | string
};
declare type DebounceOptions = {
- leading?: bool,
+ leading?: boolean,
maxWait?: number,
- trailing?: bool,
+ trailing?: boolean
};
declare type ThrottleOptions = {
- leading?: bool,
- trailing?: bool,
+ leading?: boolean,
+ trailing?: boolean
};
declare type NestedArray<T> = Array<Array<T>>;
@@ -39,7 +103,10 @@ declare module 'lodash' {
| matchesPropertyIterateeShorthand
| propertyIterateeShorthand;
- declare type OIterateeWithResult<V, O, R> = Object|string|((value: V, key: string, object: O) => R);
+ declare type OIterateeWithResult<V, O, R> =
+ | Object
+ | string
+ | ((value: V, key: string, object: O) => R);
declare type OIteratee<O> = OIterateeWithResult<any, O, any>;
declare type OFlatMapIteratee<T, U> = OIterateeWithResult<any, T, Array<U>>;
@@ -50,465 +117,3089 @@ declare module 'lodash' {
| propertyIterateeShorthand;
declare type _ValueOnlyIteratee<T> = (value: T) => mixed;
- declare type ValueOnlyIteratee<T> = _ValueOnlyIteratee<T>|string;
- declare type _Iteratee<T> = (item: T, index: number, array: ?Array<T>) => mixed;
- declare type Iteratee<T> = _Iteratee<T>|Object|string;
- declare type FlatMapIteratee<T, U> = ((item: T, index: number, array: ?Array<T>) => Array<U>)|Object|string;
- declare type Comparator<T> = (item: T, item2: T) => bool;
+ declare type ValueOnlyIteratee<T> = _ValueOnlyIteratee<T> | string;
+ declare type _Iteratee<T> = (
+ item: T,
+ index: number,
+ array: ?Array<T>
+ ) => mixed;
+ declare type Iteratee<T> = _Iteratee<T> | Object | string;
+ declare type FlatMapIteratee<T, U> =
+ | ((item: T, index: number, array: ?Array<T>) => Array<U>)
+ | Object
+ | string;
+ declare type Comparator<T> = (item: T, item2: T) => boolean;
- declare type MapIterator<T,U> =
+ declare type MapIterator<T, U> =
| ((item: T, index: number, array: Array<T>) => U)
| propertyIterateeShorthand;
- declare type OMapIterator<T,O,U> =
+ declare type OMapIterator<T, O, U> =
| ((item: T, key: string, object: O) => U)
| propertyIterateeShorthand;
declare class Lodash {
// Array
- chunk<T>(array: ?Array<T>, size?: number): Array<Array<T>>;
- compact<T,N:?T>(array: Array<N>): Array<T>;
- concat<T>(base: Array<T>, ...elements: Array<any>): Array<T|any>;
- difference<T>(array: ?Array<T>, values?: Array<T>): Array<T>;
- differenceBy<T>(array: ?Array<T>, values: Array<T>, iteratee: ValueOnlyIteratee<T>): T[];
- differenceWith<T>(array: T[], values: T[], comparator?: Comparator<T>): T[];
- drop<T>(array: ?Array<T>, n?: number): Array<T>;
- dropRight<T>(array: ?Array<T>, n?: number): Array<T>;
- dropRightWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
- dropWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
- fill<T, U>(array: ?Array<T>, value: U, start?: number, end?: number): Array<T|U>;
- findIndex<T>(array: ?Array<T>, predicate?: Predicate<T>): number;
- findLastIndex<T>(array: ?Array<T>, predicate?: Predicate<T>): number;
+ chunk<T>(array: ?Array<T>, size?: number): Array<Array<T>>,
+ compact<T, N: ?T>(array: Array<N>): Array<T>,
+ concat<T>(base: Array<T>, ...elements: Array<any>): Array<T | any>,
+ difference<T>(array: ?Array<T>, values?: Array<T>): Array<T>,
+ differenceBy<T>(
+ array: ?Array<T>,
+ values: Array<T>,
+ iteratee: ValueOnlyIteratee<T>
+ ): T[],
+ differenceWith<T>(array: T[], values: T[], comparator?: Comparator<T>): T[],
+ drop<T>(array: ?Array<T>, n?: number): Array<T>,
+ dropRight<T>(array: ?Array<T>, n?: number): Array<T>,
+ dropRightWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>,
+ dropWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>,
+ fill<T, U>(
+ array: ?Array<T>,
+ value: U,
+ start?: number,
+ end?: number
+ ): Array<T | U>,
+ findIndex<T>(
+ array: ?Array<T>,
+ predicate?: Predicate<T>,
+ fromIndex?: number
+ ): number,
+ findLastIndex<T>(
+ array: ?Array<T>,
+ predicate?: Predicate<T>,
+ fromIndex?: number
+ ): number,
// alias of _.head
- first<T>(array: ?Array<T>): T;
- flatten<T,X>(array: Array<Array<T>|X>): Array<T|X>;
- flattenDeep<T>(array: any[]): Array<T>;
- flattenDepth(array: any[], depth?: number): any[];
- fromPairs<T>(pairs: Array<T>): Object;
- head<T>(array: ?Array<T>): T;
- indexOf<T>(array: ?Array<T>, value: T, fromIndex?: number): number;
- initial<T>(array: ?Array<T>): Array<T>;
- intersection<T>(...arrays: Array<Array<T>>): Array<T>;
+ first<T>(array: ?Array<T>): T,
+ flatten<T, X>(array: Array<Array<T> | X>): Array<T | X>,
+ flattenDeep<T>(array: any[]): Array<T>,
+ flattenDepth(array: any[], depth?: number): any[],
+ fromPairs<T>(pairs: Array<T>): Object,
+ head<T>(array: ?Array<T>): T,
+ indexOf<T>(array: ?Array<T>, value: T, fromIndex?: number): number,
+ initial<T>(array: ?Array<T>): Array<T>,
+ intersection<T>(...arrays: Array<Array<T>>): Array<T>,
//Workaround until (...parameter: T, parameter2: U) works
- intersectionBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- intersectionBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- intersectionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- intersectionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
+ intersectionBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>,
+ intersectionBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
+ intersectionBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
+ intersectionBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ a4: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
//Workaround until (...parameter: T, parameter2: U) works
- intersectionWith<T>(a1: Array<T>, comparator: Comparator<T>): Array<T>;
- intersectionWith<T>(a1: Array<T>, a2: Array<T>, comparator: Comparator<T>): Array<T>;
- intersectionWith<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, comparator: Comparator<T>): Array<T>;
- intersectionWith<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, comparator: Comparator<T>): Array<T>;
- join<T>(array: ?Array<T>, separator?: string): string;
- last<T>(array: ?Array<T>): T;
- lastIndexOf<T>(array: ?Array<T>, value: T, fromIndex?: number): number;
- nth<T>(array: T[], n?: number): T;
- pull<T>(array: ?Array<T>, ...values?: Array<T>): Array<T>;
- pullAll<T>(array: ?Array<T>, values: Array<T>): Array<T>;
- pullAllBy<T>(array: ?Array<T>, values: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- pullAllWith<T>(array?: T[], values: T[], comparator?: Function): T[];
- pullAt<T>(array: ?Array<T>, ...indexed?: Array<number>): Array<T>;
- pullAt<T>(array: ?Array<T>, indexed?: Array<number>): Array<T>;
- remove<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
- reverse<T>(array: ?Array<T>): Array<T>;
- slice<T>(array: ?Array<T>, start?: number, end?: number): Array<T>;
- sortedIndex<T>(array: ?Array<T>, value: T): number;
- sortedIndexBy<T>(array: ?Array<T>, value: T, iteratee?: ValueOnlyIteratee<T>): number;
- sortedIndexOf<T>(array: ?Array<T>, value: T): number;
- sortedLastIndex<T>(array: ?Array<T>, value: T): number;
- sortedLastIndexBy<T>(array: ?Array<T>, value: T, iteratee?: ValueOnlyIteratee<T>): number;
- sortedLastIndexOf<T>(array: ?Array<T>, value: T): number;
- sortedUniq<T>(array: ?Array<T>): Array<T>;
- sortedUniqBy<T>(array: ?Array<T>, iteratee?: (value: T) => mixed): Array<T>;
- tail<T>(array: ?Array<T>): Array<T>;
- take<T>(array: ?Array<T>, n?: number): Array<T>;
- takeRight<T>(array: ?Array<T>, n?: number): Array<T>;
- takeRightWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
- takeWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
- union<T>(...arrays?: Array<Array<T>>): Array<T>;
+ intersectionWith<T>(a1: Array<T>, comparator: Comparator<T>): Array<T>,
+ intersectionWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ comparator: Comparator<T>
+ ): Array<T>,
+ intersectionWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ comparator: Comparator<T>
+ ): Array<T>,
+ intersectionWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ a4: Array<T>,
+ comparator: Comparator<T>
+ ): Array<T>,
+ join<T>(array: ?Array<T>, separator?: string): string,
+ last<T>(array: ?Array<T>): T,
+ lastIndexOf<T>(array: ?Array<T>, value: T, fromIndex?: number): number,
+ nth<T>(array: T[], n?: number): T,
+ pull<T>(array: ?Array<T>, ...values?: Array<T>): Array<T>,
+ pullAll<T>(array: ?Array<T>, values: Array<T>): Array<T>,
+ pullAllBy<T>(
+ array: ?Array<T>,
+ values: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
+ pullAllWith<T>(array?: T[], values: T[], comparator?: Function): T[],
+ pullAt<T>(array: ?Array<T>, ...indexed?: Array<number>): Array<T>,
+ pullAt<T>(array: ?Array<T>, indexed?: Array<number>): Array<T>,
+ remove<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>,
+ reverse<T>(array: ?Array<T>): Array<T>,
+ slice<T>(array: ?Array<T>, start?: number, end?: number): Array<T>,
+ sortedIndex<T>(array: ?Array<T>, value: T): number,
+ sortedIndexBy<T>(
+ array: ?Array<T>,
+ value: T,
+ iteratee?: ValueOnlyIteratee<T>
+ ): number,
+ sortedIndexOf<T>(array: ?Array<T>, value: T): number,
+ sortedLastIndex<T>(array: ?Array<T>, value: T): number,
+ sortedLastIndexBy<T>(
+ array: ?Array<T>,
+ value: T,
+ iteratee?: ValueOnlyIteratee<T>
+ ): number,
+ sortedLastIndexOf<T>(array: ?Array<T>, value: T): number,
+ sortedUniq<T>(array: ?Array<T>): Array<T>,
+ sortedUniqBy<T>(array: ?Array<T>, iteratee?: (value: T) => mixed): Array<T>,
+ tail<T>(array: ?Array<T>): Array<T>,
+ take<T>(array: ?Array<T>, n?: number): Array<T>,
+ takeRight<T>(array: ?Array<T>, n?: number): Array<T>,
+ takeRightWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>,
+ takeWhile<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>,
+ union<T>(...arrays?: Array<Array<T>>): Array<T>,
//Workaround until (...parameter: T, parameter2: U) works
- unionBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- unionBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- unionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- unionBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
+ unionBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>,
+ unionBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
+ unionBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
+ unionBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ a4: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
//Workaround until (...parameter: T, parameter2: U) works
- unionWith<T>(a1: Array<T>, comparator?: Comparator<T>): Array<T>;
- unionWith<T>(a1: Array<T>, a2: Array<T>, comparator?: Comparator<T>): Array<T>;
- unionWith<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, comparator?: Comparator<T>): Array<T>;
- unionWith<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, comparator?: Comparator<T>): Array<T>;
- uniq<T>(array: ?Array<T>): Array<T>;
- uniqBy<T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- uniqWith<T>(array: ?Array<T>, comparator?: Comparator<T>): Array<T>;
- unzip<T>(array: ?Array<T>): Array<T>;
- unzipWith<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;
- without<T>(array: ?Array<T>, ...values?: Array<T>): Array<T>;
- xor<T>(...array: Array<Array<T>>): Array<T>;
+ unionWith<T>(a1: Array<T>, comparator?: Comparator<T>): Array<T>,
+ unionWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ comparator?: Comparator<T>
+ ): Array<T>,
+ unionWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ comparator?: Comparator<T>
+ ): Array<T>,
+ unionWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ a4: Array<T>,
+ comparator?: Comparator<T>
+ ): Array<T>,
+ uniq<T>(array: ?Array<T>): Array<T>,
+ uniqBy<T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>,
+ uniqWith<T>(array: ?Array<T>, comparator?: Comparator<T>): Array<T>,
+ unzip<T>(array: ?Array<T>): Array<T>,
+ unzipWith<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>,
+ without<T>(array: ?Array<T>, ...values?: Array<T>): Array<T>,
+ xor<T>(...array: Array<Array<T>>): Array<T>,
//Workaround until (...parameter: T, parameter2: U) works
- xorBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- xorBy<T>(a1: Array<T>, a2: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- xorBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
- xorBy<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>;
+ xorBy<T>(a1: Array<T>, iteratee?: ValueOnlyIteratee<T>): Array<T>,
+ xorBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
+ xorBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
+ xorBy<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ a4: Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): Array<T>,
//Workaround until (...parameter: T, parameter2: U) works
- xorWith<T>(a1: Array<T>, comparator?: Comparator<T>): Array<T>;
- xorWith<T>(a1: Array<T>, a2: Array<T>, comparator?: Comparator<T>): Array<T>;
- xorWith<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, comparator?: Comparator<T>): Array<T>;
- xorWith<T>(a1: Array<T>, a2: Array<T>, a3: Array<T>, a4: Array<T>, comparator?: Comparator<T>): Array<T>;
- zip<A, B>(a1: A[], a2: B[]): Array<[A, B]>;
- zip<A, B, C>(a1: A[], a2: B[], a3: C[]): Array<[A, B, C]>;
- zip<A, B, C, D>(a1: A[], a2: B[], a3: C[], a4: D[]): Array<[A, B, C, D]>;
- zip<A, B, C, D, E>(a1: A[], a2: B[], a3: C[], a4: D[], a5: E[]): Array<[A, B, C, D, E]>;
-
- zipObject(props?: Array<any>, values?: Array<any>): Object;
- zipObjectDeep(props?: any[], values?: any): Object;
+ xorWith<T>(a1: Array<T>, comparator?: Comparator<T>): Array<T>,
+ xorWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ comparator?: Comparator<T>
+ ): Array<T>,
+ xorWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ comparator?: Comparator<T>
+ ): Array<T>,
+ xorWith<T>(
+ a1: Array<T>,
+ a2: Array<T>,
+ a3: Array<T>,
+ a4: Array<T>,
+ comparator?: Comparator<T>
+ ): Array<T>,
+ zip<A, B>(a1: A[], a2: B[]): Array<[A, B]>,
+ zip<A, B, C>(a1: A[], a2: B[], a3: C[]): Array<[A, B, C]>,
+ zip<A, B, C, D>(a1: A[], a2: B[], a3: C[], a4: D[]): Array<[A, B, C, D]>,
+ zip<A, B, C, D, E>(
+ a1: A[],
+ a2: B[],
+ a3: C[],
+ a4: D[],
+ a5: E[]
+ ): Array<[A, B, C, D, E]>,
+
+ zipObject(props?: Array<any>, values?: Array<any>): Object,
+ zipObjectDeep(props?: any[], values?: any): Object,
//Workaround until (...parameter: T, parameter2: U) works
- zipWith<T>(a1: NestedArray<T>, iteratee?: Iteratee<T>): Array<T>;
- zipWith<T>(a1: NestedArray<T>, a2: NestedArray<T>, iteratee?: Iteratee<T>): Array<T>;
- zipWith<T>(a1: NestedArray<T>, a2: NestedArray<T>, a3: NestedArray<T>, iteratee?: Iteratee<T>): Array<T>;
- zipWith<T>(a1: NestedArray<T>, a2: NestedArray<T>, a3: NestedArray<T>, a4: NestedArray<T>, iteratee?: Iteratee<T>): Array<T>;
+ zipWith<T>(a1: NestedArray<T>, iteratee?: Iteratee<T>): Array<T>,
+ zipWith<T>(
+ a1: NestedArray<T>,
+ a2: NestedArray<T>,
+ iteratee?: Iteratee<T>
+ ): Array<T>,
+ zipWith<T>(
+ a1: NestedArray<T>,
+ a2: NestedArray<T>,
+ a3: NestedArray<T>,
+ iteratee?: Iteratee<T>
+ ): Array<T>,
+ zipWith<T>(
+ a1: NestedArray<T>,
+ a2: NestedArray<T>,
+ a3: NestedArray<T>,
+ a4: NestedArray<T>,
+ iteratee?: Iteratee<T>
+ ): Array<T>,
// Collection
- countBy<T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): Object;
- countBy<T: Object>(object: T, iteratee?: ValueOnlyIteratee<T>): Object;
+ countBy<T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): Object,
+ countBy<T: Object>(object: T, iteratee?: ValueOnlyIteratee<T>): Object,
// alias of _.forEach
- each<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;
- each<T: Object>(object: T, iteratee?: OIteratee<T>): T;
+ each<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>,
+ each<T: Object>(object: T, iteratee?: OIteratee<T>): T,
// alias of _.forEachRight
- eachRight<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;
- eachRight<T: Object>(object: T, iteratee?: OIteratee<T>): T;
- every<T>(array: ?Array<T>, iteratee?: Iteratee<T>): bool;
- every<T: Object>(object: T, iteratee?: OIteratee<T>): bool;
- filter<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
- filter<A, T: {[id: string]: A}>(object: T, predicate?: OPredicate<A, T>): Array<A>;
- find<T>(array: ?Array<T>, predicate?: Predicate<T>, fromIndex?: number): T|void;
- find<V, A, T: {[id: string]: A}>(object: T, predicate?: OPredicate<A, T>, fromIndex?: number): V;
- findLast<T>(array: ?Array<T>, predicate?: Predicate<T>, fromIndex?: number): T|void;
- findLast<V, A, T: {[id: string]: A}>(object: T, predicate?: OPredicate<A, T>, fromIndex?: number): V;
- flatMap<T, U>(array: ?Array<T>, iteratee?: FlatMapIteratee<T, U>): Array<U>;
- flatMap<T: Object, U>(object: T, iteratee?: OFlatMapIteratee<T, U>): Array<U>;
- flatMapDeep<T, U>(array: ?Array<T>, iteratee?: FlatMapIteratee<T, U>): Array<U>;
- flatMapDeep<T: Object, U>(object: T, iteratee?: OFlatMapIteratee<T, U>): Array<U>;
- flatMapDepth<T, U>(array: ?Array<T>, iteratee?: FlatMapIteratee<T, U>, depth?: number): Array<U>;
- flatMapDepth<T: Object, U>(object: T, iteratee?: OFlatMapIteratee<T, U>, depth?: number): Array<U>;
- forEach<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;
- forEach<T: Object>(object: T, iteratee?: OIteratee<T>): T;
- forEachRight<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>;
- forEachRight<T: Object>(object: T, iteratee?: OIteratee<T>): T;
- groupBy<V, T>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): {[key: V]: Array<T>};
- groupBy<V, A, T: {[id: string]: A}>(object: T, iteratee?: ValueOnlyIteratee<A>): {[key: V]: Array<A>};
- includes<T>(array: ?Array<T>, value: T, fromIndex?: number): bool;
- includes<T: Object>(object: T, value: any, fromIndex?: number): bool;
- includes(str: string, value: string, fromIndex?: number): bool;
- invokeMap<T>(array: ?Array<T>, path: ((value: T) => Array<string>|string)|Array<string>|string, ...args?: Array<any>): Array<any>;
- invokeMap<T: Object>(object: T, path: ((value: any) => Array<string>|string)|Array<string>|string, ...args?: Array<any>): Array<any>;
- keyBy<T, V>(array: ?Array<T>, iteratee?: ValueOnlyIteratee<T>): {[key: V]: ?T};
- keyBy<V, A, T: {[id: string]: A}>(object: T, iteratee?: ValueOnlyIteratee<A>): {[key: V]: ?A};
- map<T, U>(array: ?Array<T>, iteratee?: MapIterator<T, U>): Array<U>;
- map<V, T: Object, U>(object: ?T, iteratee?: OMapIterator<V, T, U>): Array<U>;
- map(str: ?string, iteratee?: (char: string, index: number, str: string) => any): string;
- orderBy<T>(array: ?Array<T>, iteratees?: Array<Iteratee<T>>|string, orders?: Array<'asc'|'desc'>|string): Array<T>;
- orderBy<V, T: Object>(object: T, iteratees?: Array<OIteratee<*>>|string, orders?: Array<'asc'|'desc'>|string): Array<V>;
- partition<T>(array: ?Array<T>, predicate?: Predicate<T>): NestedArray<T>;
- partition<V, A, T: {[id: string]: A}>(object: T, predicate?: OPredicate<A, T>): NestedArray<V>;
- reduce<T, U>(array: ?Array<T>, iteratee?: (accumulator: U, value: T, index: number, array: ?Array<T>) => U, accumulator?: U): U;
- reduce<T: Object, U>(object: T, iteratee?: (accumulator: U, value: any, key: string, object: T) => U, accumulator?: U): U;
- reduceRight<T, U>(array: ?Array<T>, iteratee?: (accumulator: U, value: T, index: number, array: ?Array<T>) => U, accumulator?: U): U;
- reduceRight<T: Object, U>(object: T, iteratee?: (accumulator: U, value: any, key: string, object: T) => U, accumulator?: U): U;
- reject<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>;
- reject<V: Object, A, T: {[id: string]: A}>(object: T, predicate?: OPredicate<A, T>): Array<V>;
- sample<T>(array: ?Array<T>): T;
- sample<V, T: Object>(object: T): V;
- sampleSize<T>(array: ?Array<T>, n?: number): Array<T>;
- sampleSize<V, T: Object>(object: T, n?: number): Array<V>;
- shuffle<T>(array: ?Array<T>): Array<T>;
- shuffle<V, T: Object>(object: T): Array<V>;
- size(collection: Array<any>|Object): number;
- some<T>(array: ?Array<T>, predicate?: Predicate<T>): bool;
- some<A, T: {[id: string]: A}>(object?: ?T, predicate?: OPredicate<A, T>): bool;
- sortBy<T>(array: ?Array<T>, ...iteratees?: Array<Iteratee<T>>): Array<T>;
- sortBy<T>(array: ?Array<T>, iteratees?: Array<Iteratee<T>>): Array<T>;
- sortBy<V, T: Object>(object: T, ...iteratees?: Array<OIteratee<T>>): Array<V>;
- sortBy<V, T: Object>(object: T, iteratees?: Array<OIteratee<T>>): Array<V>;
+ eachRight<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>,
+ eachRight<T: Object>(object: T, iteratee?: OIteratee<T>): T,
+ every<T>(array: ?Array<T>, iteratee?: Iteratee<T>): boolean,
+ every<T: Object>(object: T, iteratee?: OIteratee<T>): boolean,
+ filter<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>,
+ filter<A, T: { [id: string]: A }>(
+ object: T,
+ predicate?: OPredicate<A, T>
+ ): Array<A>,
+ find<T>(
+ array: ?Array<T>,
+ predicate?: Predicate<T>,
+ fromIndex?: number
+ ): T | void,
+ find<V, A, T: { [id: string]: A }>(
+ object: T,
+ predicate?: OPredicate<A, T>,
+ fromIndex?: number
+ ): V,
+ findLast<T>(
+ array: ?Array<T>,
+ predicate?: Predicate<T>,
+ fromIndex?: number
+ ): T | void,
+ findLast<V, A, T: { [id: string]: A }>(
+ object: T,
+ predicate?: OPredicate<A, T>
+ ): V,
+ flatMap<T, U>(array: ?Array<T>, iteratee?: FlatMapIteratee<T, U>): Array<U>,
+ flatMap<T: Object, U>(
+ object: T,
+ iteratee?: OFlatMapIteratee<T, U>
+ ): Array<U>,
+ flatMapDeep<T, U>(
+ array: ?Array<T>,
+ iteratee?: FlatMapIteratee<T, U>
+ ): Array<U>,
+ flatMapDeep<T: Object, U>(
+ object: T,
+ iteratee?: OFlatMapIteratee<T, U>
+ ): Array<U>,
+ flatMapDepth<T, U>(
+ array: ?Array<T>,
+ iteratee?: FlatMapIteratee<T, U>,
+ depth?: number
+ ): Array<U>,
+ flatMapDepth<T: Object, U>(
+ object: T,
+ iteratee?: OFlatMapIteratee<T, U>,
+ depth?: number
+ ): Array<U>,
+ forEach<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>,
+ forEach<T: Object>(object: T, iteratee?: OIteratee<T>): T,
+ forEachRight<T>(array: ?Array<T>, iteratee?: Iteratee<T>): Array<T>,
+ forEachRight<T: Object>(object: T, iteratee?: OIteratee<T>): T,
+ groupBy<V, T>(
+ array: ?Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): { [key: V]: Array<T> },
+ groupBy<V, A, T: { [id: string]: A }>(
+ object: T,
+ iteratee?: ValueOnlyIteratee<A>
+ ): { [key: V]: Array<A> },
+ includes<T>(array: ?Array<T>, value: T, fromIndex?: number): boolean,
+ includes<T: Object>(object: T, value: any, fromIndex?: number): boolean,
+ includes(str: string, value: string, fromIndex?: number): boolean,
+ invokeMap<T>(
+ array: ?Array<T>,
+ path: ((value: T) => Array<string> | string) | Array<string> | string,
+ ...args?: Array<any>
+ ): Array<any>,
+ invokeMap<T: Object>(
+ object: T,
+ path: ((value: any) => Array<string> | string) | Array<string> | string,
+ ...args?: Array<any>
+ ): Array<any>,
+ keyBy<T, V>(
+ array: ?Array<T>,
+ iteratee?: ValueOnlyIteratee<T>
+ ): { [key: V]: ?T },
+ keyBy<V, A, I, T: { [id: I]: A }>(
+ object: T,
+ iteratee?: ValueOnlyIteratee<A>
+ ): { [key: V]: ?A },
+ map<T, U>(array: ?Array<T>, iteratee?: MapIterator<T, U>): Array<U>,
+ map<V, T: Object, U>(
+ object: ?T,
+ iteratee?: OMapIterator<V, T, U>
+ ): Array<U>,
+ map(
+ str: ?string,
+ iteratee?: (char: string, index: number, str: string) => any
+ ): string,
+ orderBy<T>(
+ array: ?Array<T>,
+ iteratees?: Array<Iteratee<T>> | string,
+ orders?: Array<"asc" | "desc"> | string
+ ): Array<T>,
+ orderBy<V, T: Object>(
+ object: T,
+ iteratees?: Array<OIteratee<*>> | string,
+ orders?: Array<"asc" | "desc"> | string
+ ): Array<V>,
+ partition<T>(array: ?Array<T>, predicate?: Predicate<T>): NestedArray<T>,
+ partition<V, A, T: { [id: string]: A }>(
+ object: T,
+ predicate?: OPredicate<A, T>
+ ): NestedArray<V>,
+ reduce<T, U>(
+ array: ?Array<T>,
+ iteratee?: (
+ accumulator: U,
+ value: T,
+ index: number,
+ array: ?Array<T>
+ ) => U,
+ accumulator?: U
+ ): U,
+ reduce<T: Object, U>(
+ object: T,
+ iteratee?: (accumulator: U, value: any, key: string, object: T) => U,
+ accumulator?: U
+ ): U,
+ reduceRight<T, U>(
+ array: ?Array<T>,
+ iteratee?: (
+ accumulator: U,
+ value: T,
+ index: number,
+ array: ?Array<T>
+ ) => U,
+ accumulator?: U
+ ): U,
+ reduceRight<T: Object, U>(
+ object: T,
+ iteratee?: (accumulator: U, value: any, key: string, object: T) => U,
+ accumulator?: U
+ ): U,
+ reject<T>(array: ?Array<T>, predicate?: Predicate<T>): Array<T>,
+ reject<V: Object, A, T: { [id: string]: A }>(
+ object: T,
+ predicate?: OPredicate<A, T>
+ ): Array<V>,
+ sample<T>(array: ?Array<T>): T,
+ sample<V, T: Object>(object: T): V,
+ sampleSize<T>(array: ?Array<T>, n?: number): Array<T>,
+ sampleSize<V, T: Object>(object: T, n?: number): Array<V>,
+ shuffle<T>(array: ?Array<T>): Array<T>,
+ shuffle<V, T: Object>(object: T): Array<V>,
+ size(collection: Array<any> | Object): number,
+ some<T>(array: ?Array<T>, predicate?: Predicate<T>): boolean,
+ some<A, T: { [id: string]: A }>(
+ object?: ?T,
+ predicate?: OPredicate<A, T>
+ ): boolean,
+ sortBy<T>(array: ?Array<T>, ...iteratees?: Array<Iteratee<T>>): Array<T>,
+ sortBy<T>(array: ?Array<T>, iteratees?: Array<Iteratee<T>>): Array<T>,
+ sortBy<V, T: Object>(
+ object: T,
+ ...iteratees?: Array<OIteratee<T>>
+ ): Array<V>,
+ sortBy<V, T: Object>(object: T, iteratees?: Array<OIteratee<T>>): Array<V>,
// Date
- now(): number;
+ now(): number,
// Function
- after(n: number, fn: Function): Function;
- ary(func: Function, n?: number): Function;
- before(n: number, fn: Function): Function;
- bind(func: Function, thisArg: any, ...partials: Array<any>): Function;
- bindKey(obj: Object, key: string, ...partials: Array<any>): Function;
- curry(func: Function, arity?: number): Function;
- curryRight(func: Function, arity?: number): Function;
- debounce(func: Function, wait?: number, options?: DebounceOptions): Function;
- defer(func: Function, ...args?: Array<any>): number;
- delay(func: Function, wait: number, ...args?: Array<any>): number;
- flip(func: Function): Function;
- memoize(func: Function, resolver?: Function): Function;
- negate(predicate: Function): Function;
- once(func: Function): Function;
- overArgs(func: Function, ...transforms: Array<Function>): Function;
- overArgs(func: Function, transforms: Array<Function>): Function;
- partial(func: Function, ...partials: any[]): Function;
- partialRight(func: Function, ...partials: Array<any>): Function;
- partialRight(func: Function, partials: Array<any>): Function;
- rearg(func: Function, ...indexes: Array<number>): Function;
- rearg(func: Function, indexes: Array<number>): Function;
- rest(func: Function, start?: number): Function;
- spread(func: Function): Function;
- throttle(func: Function, wait?: number, options?: ThrottleOptions): Function;
- unary(func: Function): Function;
- wrap(value: any, wrapper: Function): Function;
+ after(n: number, fn: Function): Function,
+ ary(func: Function, n?: number): Function,
+ before(n: number, fn: Function): Function,
+ bind(func: Function, thisArg: any, ...partials: Array<any>): Function,
+ bindKey(obj: Object, key: string, ...partials: Array<any>): Function,
+ curry: Curry,
+ curry(func: Function, arity?: number): Function,
+ curryRight(func: Function, arity?: number): Function,
+ debounce(
+ func: Function,
+ wait?: number,
+ options?: DebounceOptions
+ ): Function,
+ defer(func: Function, ...args?: Array<any>): number,
+ delay(func: Function, wait: number, ...args?: Array<any>): number,
+ flip(func: Function): Function,
+ memoize(func: Function, resolver?: Function): Function,
+ negate(predicate: Function): Function,
+ once(func: Function): Function,
+ overArgs(func: Function, ...transforms: Array<Function>): Function,
+ overArgs(func: Function, transforms: Array<Function>): Function,
+ partial(func: Function, ...partials: any[]): Function,
+ partialRight(func: Function, ...partials: Array<any>): Function,
+ partialRight(func: Function, partials: Array<any>): Function,
+ rearg(func: Function, ...indexes: Array<number>): Function,
+ rearg(func: Function, indexes: Array<number>): Function,
+ rest(func: Function, start?: number): Function,
+ spread(func: Function): Function,
+ throttle(
+ func: Function,
+ wait?: number,
+ options?: ThrottleOptions
+ ): Function,
+ unary(func: Function): Function,
+ wrap(value: any, wrapper: Function): Function,
// Lang
- castArray(value: *): any[];
- clone<T>(value: T): T;
- cloneDeep<T>(value: T): T;
- cloneDeepWith<T, U>(value: T, customizer?: ?(value: T, key: number|string, object: T, stack: any) => U): U;
- cloneWith<T, U>(value: T, customizer?: ?(value: T, key: number|string, object: T, stack: any) => U): U;
- conformsTo<T:{[key:string]:mixed}>(source: T, predicates: T&{[key:string]:(x:any)=>boolean}): boolean;
- eq(value: any, other: any): bool;
- gt(value: any, other: any): bool;
- gte(value: any, other: any): bool;
- isArguments(value: any): bool;
- isArray(value: any): bool;
- isArrayBuffer(value: any): bool;
- isArrayLike(value: any): bool;
- isArrayLikeObject(value: any): bool;
- isBoolean(value: any): bool;
- isBuffer(value: any): bool;
- isDate(value: any): bool;
- isElement(value: any): bool;
- isEmpty(value: any): bool;
- isEqual(value: any, other: any): bool;
- isEqualWith<T, U>(value: T, other: U, customizer?: (objValue: any, otherValue: any, key: number|string, object: T, other: U, stack: any) => bool|void): bool;
- isError(value: any): bool;
- isFinite(value: any): bool;
- isFunction(value: Function): true;
- isFunction(value: number|string|void|null|Object): false;
- isInteger(value: any): bool;
- isLength(value: any): bool;
- isMap(value: any): bool;
- isMatch(object?: ?Object, source: Object): bool;
- isMatchWith<T: Object, U: Object>(object: T, source: U, customizer?: (objValue: any, srcValue: any, key: number|string, object: T, source: U) => bool|void): bool;
- isNaN(value: any): bool;
- isNative(value: any): bool;
- isNil(value: any): bool;
- isNull(value: any): bool;
- isNumber(value: any): bool;
- isObject(value: any): bool;
- isObjectLike(value: any): bool;
- isPlainObject(value: any): bool;
- isRegExp(value: any): bool;
- isSafeInteger(value: any): bool;
- isSet(value: any): bool;
- isString(value: string): true;
- isString(value: number|bool|Function|void|null|Object|Array<any>): false;
- isSymbol(value: any): bool;
- isTypedArray(value: any): bool;
- isUndefined(value: any): bool;
- isWeakMap(value: any): bool;
- isWeakSet(value: any): bool;
- lt(value: any, other: any): bool;
- lte(value: any, other: any): bool;
- toArray(value: any): Array<any>;
- toFinite(value: any): number;
- toInteger(value: any): number;
- toLength(value: any): number;
- toNumber(value: any): number;
- toPlainObject(value: any): Object;
- toSafeInteger(value: any): number;
- toString(value: any): string;
+ castArray(value: *): any[],
+ clone<T>(value: T): T,
+ cloneDeep<T>(value: T): T,
+ cloneDeepWith<T, U>(
+ value: T,
+ customizer?: ?(value: T, key: number | string, object: T, stack: any) => U
+ ): U,
+ cloneWith<T, U>(
+ value: T,
+ customizer?: ?(value: T, key: number | string, object: T, stack: any) => U
+ ): U,
+ conformsTo<T: { [key: string]: mixed }>(
+ source: T,
+ predicates: T & { [key: string]: (x: any) => boolean }
+ ): boolean,
+ eq(value: any, other: any): boolean,
+ gt(value: any, other: any): boolean,
+ gte(value: any, other: any): boolean,
+ isArguments(value: any): boolean,
+ isArray(value: any): boolean,
+ isArrayBuffer(value: any): boolean,
+ isArrayLike(value: any): boolean,
+ isArrayLikeObject(value: any): boolean,
+ isBoolean(value: any): boolean,
+ isBuffer(value: any): boolean,
+ isDate(value: any): boolean,
+ isElement(value: any): boolean,
+ isEmpty(value: any): boolean,
+ isEqual(value: any, other: any): boolean,
+ isEqualWith<T, U>(
+ value: T,
+ other: U,
+ customizer?: (
+ objValue: any,
+ otherValue: any,
+ key: number | string,
+ object: T,
+ other: U,
+ stack: any
+ ) => boolean | void
+ ): boolean,
+ isError(value: any): boolean,
+ isFinite(value: any): boolean,
+ isFunction(value: Function): true,
+ isFunction(value: number | string | void | null | Object): false,
+ isInteger(value: any): boolean,
+ isLength(value: any): boolean,
+ isMap(value: any): boolean,
+ isMatch(object?: ?Object, source: Object): boolean,
+ isMatchWith<T: Object, U: Object>(
+ object: T,
+ source: U,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: number | string,
+ object: T,
+ source: U
+ ) => boolean | void
+ ): boolean,
+ isNaN(value: any): boolean,
+ isNative(value: any): boolean,
+ isNil(value: any): boolean,
+ isNull(value: any): boolean,
+ isNumber(value: any): boolean,
+ isObject(value: any): boolean,
+ isObjectLike(value: any): boolean,
+ isPlainObject(value: any): boolean,
+ isRegExp(value: any): boolean,
+ isSafeInteger(value: any): boolean,
+ isSet(value: any): boolean,
+ isString(value: string): true,
+ isString(
+ value: number | boolean | Function | void | null | Object | Array<any>
+ ): false,
+ isSymbol(value: any): boolean,
+ isTypedArray(value: any): boolean,
+ isUndefined(value: any): boolean,
+ isWeakMap(value: any): boolean,
+ isWeakSet(value: any): boolean,
+ lt(value: any, other: any): boolean,
+ lte(value: any, other: any): boolean,
+ toArray(value: any): Array<any>,
+ toFinite(value: any): number,
+ toInteger(value: any): number,
+ toLength(value: any): number,
+ toNumber(value: any): number,
+ toPlainObject(value: any): Object,
+ toSafeInteger(value: any): number,
+ toString(value: any): string,
// Math
- add(augend: number, addend: number): number;
- ceil(number: number, precision?: number): number;
- divide(dividend: number, divisor: number): number;
- floor(number: number, precision?: number): number;
- max<T>(array: ?Array<T>): T;
- maxBy<T>(array: ?Array<T>, iteratee?: Iteratee<T>): T;
- mean(array: Array<*>): number;
- meanBy<T>(array: Array<T>, iteratee?: Iteratee<T>): number;
- min<T>(array: ?Array<T>): T;
- minBy<T>(array: ?Array<T>, iteratee?: Iteratee<T>): T;
- multiply(multiplier: number, multiplicand: number): number;
- round(number: number, precision?: number): number;
- subtract(minuend: number, subtrahend: number): number;
- sum(array: Array<*>): number;
- sumBy<T>(array: Array<T>, iteratee?: Iteratee<T>): number;
+ add(augend: number, addend: number): number,
+ ceil(number: number, precision?: number): number,
+ divide(dividend: number, divisor: number): number,
+ floor(number: number, precision?: number): number,
+ max<T>(array: ?Array<T>): T,
+ maxBy<T>(array: ?Array<T>, iteratee?: Iteratee<T>): T,
+ mean(array: Array<*>): number,
+ meanBy<T>(array: Array<T>, iteratee?: Iteratee<T>): number,
+ min<T>(array: ?Array<T>): T,
+ minBy<T>(array: ?Array<T>, iteratee?: Iteratee<T>): T,
+ multiply(multiplier: number, multiplicand: number): number,
+ round(number: number, precision?: number): number,
+ subtract(minuend: number, subtrahend: number): number,
+ sum(array: Array<*>): number,
+ sumBy<T>(array: Array<T>, iteratee?: Iteratee<T>): number,
// number
- clamp(number: number, lower?: number, upper: number): number;
- inRange(number: number, start?: number, end: number): bool;
- random(lower?: number, upper?: number, floating?: bool): number;
+ clamp(number: number, lower?: number, upper: number): number,
+ inRange(number: number, start?: number, end: number): boolean,
+ random(lower?: number, upper?: number, floating?: boolean): number,
// Object
- assign(object?: ?Object, ...sources?: Array<Object>): Object;
- assignIn<A, B>(a: A, b: B): A & B;
- assignIn<A, B, C>(a: A, b: B, c: C): A & B & C;
- assignIn<A, B, C, D>(a: A, b: B, c: C, d: D): A & B & C & D;
- assignIn<A, B, C, D, E>(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E;
- assignInWith<T: Object, A: Object>(object: T, s1: A, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A) => any|void): Object;
- assignInWith<T: Object, A: Object, B: Object>(object: T, s1: A, s2: B, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B) => any|void): Object;
- assignInWith<T: Object, A: Object, B: Object, C: Object>(object: T, s1: A, s2: B, s3: C, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B|C) => any|void): Object;
- assignInWith<T: Object, A: Object, B: Object, C: Object, D: Object>(object: T, s1: A, s2: B, s3: C, s4: D, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B|C|D) => any|void): Object;
- assignWith<T: Object, A: Object>(object: T, s1: A, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A) => any|void): Object;
- assignWith<T: Object, A: Object, B: Object>(object: T, s1: A, s2: B, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B) => any|void): Object;
- assignWith<T: Object, A: Object, B: Object, C: Object>(object: T, s1: A, s2: B, s3: C, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B|C) => any|void): Object;
- assignWith<T: Object, A: Object, B: Object, C: Object, D: Object>(object: T, s1: A, s2: B, s3: C, s4: D, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B|C|D) => any|void): Object;
- at(object?: ?Object, ...paths: Array<string>): Array<any>;
- at(object?: ?Object, paths: Array<string>): Array<any>;
- create<T>(prototype: T, properties?: Object): $Supertype<T>;
- defaults(object?: ?Object, ...sources?: Array<Object>): Object;
- defaultsDeep(object?: ?Object, ...sources?: Array<Object>): Object;
+ assign(object?: ?Object, ...sources?: Array<Object>): Object,
+ assignIn<A, B>(a: A, b: B): A & B,
+ assignIn<A, B, C>(a: A, b: B, c: C): A & B & C,
+ assignIn<A, B, C, D>(a: A, b: B, c: C, d: D): A & B & C & D,
+ assignIn<A, B, C, D, E>(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E,
+ assignInWith<T: Object, A: Object>(
+ object: T,
+ s1: A,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A
+ ) => any | void
+ ): Object,
+ assignInWith<T: Object, A: Object, B: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B
+ ) => any | void
+ ): Object,
+ assignInWith<T: Object, A: Object, B: Object, C: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ s3: C,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B | C
+ ) => any | void
+ ): Object,
+ assignInWith<T: Object, A: Object, B: Object, C: Object, D: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ s3: C,
+ s4: D,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B | C | D
+ ) => any | void
+ ): Object,
+ assignWith<T: Object, A: Object>(
+ object: T,
+ s1: A,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A
+ ) => any | void
+ ): Object,
+ assignWith<T: Object, A: Object, B: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B
+ ) => any | void
+ ): Object,
+ assignWith<T: Object, A: Object, B: Object, C: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ s3: C,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B | C
+ ) => any | void
+ ): Object,
+ assignWith<T: Object, A: Object, B: Object, C: Object, D: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ s3: C,
+ s4: D,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B | C | D
+ ) => any | void
+ ): Object,
+ at(object?: ?Object, ...paths: Array<string>): Array<any>,
+ at(object?: ?Object, paths: Array<string>): Array<any>,
+ create<T>(prototype: T, properties?: Object): $Supertype<T>,
+ defaults(object?: ?Object, ...sources?: Array<Object>): Object,
+ defaultsDeep(object?: ?Object, ...sources?: Array<Object>): Object,
// alias for _.toPairs
- entries(object?: ?Object): NestedArray<any>;
+ entries(object?: ?Object): NestedArray<any>,
// alias for _.toPairsIn
- entriesIn(object?: ?Object): NestedArray<any>;
+ entriesIn(object?: ?Object): NestedArray<any>,
// alias for _.assignIn
- extend<A, B>(a: A, b: B): A & B;
- extend<A, B, C>(a: A, b: B, c: C): A & B & C;
- extend<A, B, C, D>(a: A, b: B, c: C, d: D): A & B & C & D;
- extend<A, B, C, D, E>(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E;
+ extend<A, B>(a: A, b: B): A & B,
+ extend<A, B, C>(a: A, b: B, c: C): A & B & C,
+ extend<A, B, C, D>(a: A, b: B, c: C, d: D): A & B & C & D,
+ extend<A, B, C, D, E>(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E,
// alias for _.assignInWith
- extendWith<T: Object, A: Object>(object: T, s1: A, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A) => any|void): Object;
- extendWith<T: Object, A: Object, B: Object>(object: T, s1: A, s2: B, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B) => any|void): Object;
- extendWith<T: Object, A: Object, B: Object, C: Object>(object: T, s1: A, s2: B, s3: C, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B|C) => any|void): Object;
- extendWith<T: Object, A: Object, B: Object, C: Object, D: Object>(object: T, s1: A, s2: B, s3: C, s4: D, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B|C|D) => any|void): Object;
- findKey<A, T: {[id: string]: A}>(object?: ?T, predicate?: OPredicate<A, T>): string|void;
- findLastKey<A, T: {[id: string]: A}>(object?: ?T, predicate?: OPredicate<A, T>): string|void;
- forIn(object?: ?Object, iteratee?: OIteratee<*>): Object;
- forInRight(object?: ?Object, iteratee?: OIteratee<*>): Object;
- forOwn(object?: ?Object, iteratee?: OIteratee<*>): Object;
- forOwnRight(object?: ?Object, iteratee?: OIteratee<*>): Object;
- functions(object?: ?Object): Array<string>;
- functionsIn(object?: ?Object): Array<string>;
- get(object?: ?Object|?Array<any>, path?: ?Array<string>|string, defaultValue?: any): any;
- has(object?: ?Object, path?: ?Array<string>|string): bool;
- hasIn(object?: ?Object, path?: ?Array<string>|string): bool;
- invert(object?: ?Object, multiVal?: bool): Object;
- invertBy(object: ?Object, iteratee?: Function): Object;
- invoke(object?: ?Object, path?: ?Array<string>|string, ...args?: Array<any>): any;
- keys(object?: ?Object): Array<string>;
- keysIn(object?: ?Object): Array<string>;
- mapKeys(object?: ?Object, iteratee?: OIteratee<*>): Object;
- mapValues(object?: ?Object, iteratee?: OIteratee<*>): Object;
- merge(object?: ?Object, ...sources?: Array<?Object>): Object;
- mergeWith<T: Object, A: Object>(object: T, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A) => any|void): Object;
- mergeWith<T: Object, A: Object, B: Object>(object: T, s1: A, s2: B, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B) => any|void): Object;
- mergeWith<T: Object, A: Object, B: Object, C: Object>(object: T, s1: A, s2: B, s3: C, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B|C) => any|void): Object;
- mergeWith<T: Object, A: Object, B: Object, C: Object, D: Object>(object: T, s1: A, s2: B, s3: C, s4: D, customizer?: (objValue: any, srcValue: any, key: string, object: T, source: A|B|C|D) => any|void): Object;
- omit(object?: ?Object, ...props: Array<string>): Object;
- omit(object?: ?Object, props: Array<string>): Object;
- omitBy<A, T: {[id: string]: A}>(object?: ?T, predicate?: OPredicate<A, T>): Object;
- pick(object?: ?Object, ...props: Array<string>): Object;
- pick(object?: ?Object, props: Array<string>): Object;
- pickBy<A, T: {[id: string]: A}>(object?: ?T, predicate?: OPredicate<A, T>): Object;
- result(object?: ?Object, path?: ?Array<string>|string, defaultValue?: any): any;
- set(object?: ?Object, path?: ?Array<string>|string, value: any): Object;
- setWith<T>(object: T, path?: ?Array<string>|string, value: any, customizer?: (nsValue: any, key: string, nsObject: T) => any): Object;
- toPairs(object?: ?Object|Array<*>): NestedArray<any>;
- toPairsIn(object?: ?Object): NestedArray<any>;
- transform(collection: Object|Array<any>, iteratee?: OIteratee<*>, accumulator?: any): any;
- unset(object?: ?Object, path?: ?Array<string>|string): bool;
- update(object: Object, path: string[]|string, updater: Function): Object;
- updateWith(object: Object, path: string[]|string, updater: Function, customizer?: Function): Object;
- values(object?: ?Object): Array<any>;
- valuesIn(object?: ?Object): Array<any>;
+ extendWith<T: Object, A: Object>(
+ object: T,
+ s1: A,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A
+ ) => any | void
+ ): Object,
+ extendWith<T: Object, A: Object, B: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B
+ ) => any | void
+ ): Object,
+ extendWith<T: Object, A: Object, B: Object, C: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ s3: C,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B | C
+ ) => any | void
+ ): Object,
+ extendWith<T: Object, A: Object, B: Object, C: Object, D: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ s3: C,
+ s4: D,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B | C | D
+ ) => any | void
+ ): Object,
+ findKey<A, T: { [id: string]: A }>(
+ object?: ?T,
+ predicate?: OPredicate<A, T>
+ ): string | void,
+ findLastKey<A, T: { [id: string]: A }>(
+ object?: ?T,
+ predicate?: OPredicate<A, T>
+ ): string | void,
+ forIn(object?: ?Object, iteratee?: OIteratee<*>): Object,
+ forInRight(object?: ?Object, iteratee?: OIteratee<*>): Object,
+ forOwn(object?: ?Object, iteratee?: OIteratee<*>): Object,
+ forOwnRight(object?: ?Object, iteratee?: OIteratee<*>): Object,
+ functions(object?: ?Object): Array<string>,
+ functionsIn(object?: ?Object): Array<string>,
+ get(
+ object?: ?Object | ?Array<any>,
+ path?: ?Array<string> | string,
+ defaultValue?: any
+ ): any,
+ has(object?: ?Object, path?: ?Array<string> | string): boolean,
+ hasIn(object?: ?Object, path?: ?Array<string> | string): boolean,
+ invert(object?: ?Object, multiVal?: boolean): Object,
+ invertBy(object: ?Object, iteratee?: Function): Object,
+ invoke(
+ object?: ?Object,
+ path?: ?Array<string> | string,
+ ...args?: Array<any>
+ ): any,
+ keys(object?: ?Object): Array<string>,
+ keysIn(object?: ?Object): Array<string>,
+ mapKeys(object?: ?Object, iteratee?: OIteratee<*>): Object,
+ mapValues(object?: ?Object, iteratee?: OIteratee<*>): Object,
+ merge(object?: ?Object, ...sources?: Array<?Object>): Object,
+ mergeWith<T: Object, A: Object>(
+ object: T,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A
+ ) => any | void
+ ): Object,
+ mergeWith<T: Object, A: Object, B: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B
+ ) => any | void
+ ): Object,
+ mergeWith<T: Object, A: Object, B: Object, C: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ s3: C,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B | C
+ ) => any | void
+ ): Object,
+ mergeWith<T: Object, A: Object, B: Object, C: Object, D: Object>(
+ object: T,
+ s1: A,
+ s2: B,
+ s3: C,
+ s4: D,
+ customizer?: (
+ objValue: any,
+ srcValue: any,
+ key: string,
+ object: T,
+ source: A | B | C | D
+ ) => any | void
+ ): Object,
+ omit(object?: ?Object, ...props: Array<string>): Object,
+ omit(object?: ?Object, props: Array<string>): Object,
+ omitBy<A, T: { [id: string]: A }>(
+ object?: ?T,
+ predicate?: OPredicate<A, T>
+ ): Object,
+ pick(object?: ?Object, ...props: Array<string>): Object,
+ pick(object?: ?Object, props: Array<string>): Object,
+ pickBy<A, T: { [id: string]: A }>(
+ object?: ?T,
+ predicate?: OPredicate<A, T>
+ ): Object,
+ result(
+ object?: ?Object,
+ path?: ?Array<string> | string,
+ defaultValue?: any
+ ): any,
+ set(object?: ?Object, path?: ?Array<string> | string, value: any): Object,
+ setWith<T>(
+ object: T,
+ path?: ?Array<string> | string,
+ value: any,
+ customizer?: (nsValue: any, key: string, nsObject: T) => any
+ ): Object,
+ toPairs(object?: ?Object | Array<*>): NestedArray<any>,
+ toPairsIn(object?: ?Object): NestedArray<any>,
+ transform(
+ collection: Object | Array<any>,
+ iteratee?: OIteratee<*>,
+ accumulator?: any
+ ): any,
+ unset(object?: ?Object, path?: ?Array<string> | string): boolean,
+ update(object: Object, path: string[] | string, updater: Function): Object,
+ updateWith(
+ object: Object,
+ path: string[] | string,
+ updater: Function,
+ customizer?: Function
+ ): Object,
+ values(object?: ?Object): Array<any>,
+ valuesIn(object?: ?Object): Array<any>,
// Seq
// harder to read, but this is _()
- (value: any): any;
- chain<T>(value: T): any;
- tap<T>(value: T, interceptor: (value:T)=>any): T;
- thru<T1,T2>(value: T1, interceptor: (value:T1)=>T2): T2;
+ (value: any): any,
+ chain<T>(value: T): any,
+ tap<T>(value: T, interceptor: (value: T) => any): T,
+ thru<T1, T2>(value: T1, interceptor: (value: T1) => T2): T2,
// TODO: _.prototype.*
// String
- camelCase(string?: ?string): string;
- capitalize(string?: string): string;
- deburr(string?: string): string;
- endsWith(string?: string, target?: string, position?: number): bool;
- escape(string?: string): string;
- escapeRegExp(string?: string): string;
- kebabCase(string?: string): string;
- lowerCase(string?: string): string;
- lowerFirst(string?: string): string;
- pad(string?: string, length?: number, chars?: string): string;
- padEnd(string?: string, length?: number, chars?: string): string;
- padStart(string?: string, length?: number, chars?: string): string;
- parseInt(string: string, radix?: number): number;
- repeat(string?: string, n?: number): string;
- replace(string?: string, pattern: RegExp|string, replacement: ((string: string) => string)|string): string;
- snakeCase(string?: string): string;
- split(string?: string, separator: RegExp|string, limit?: number): Array<string>;
- startCase(string?: string): string;
- startsWith(string?: string, target?: string, position?: number): bool;
- template(string?: string, options?: TemplateSettings): Function;
- toLower(string?: string): string;
- toUpper(string?: string): string;
- trim(string?: string, chars?: string): string;
- trimEnd(string?: string, chars?: string): string;
- trimStart(string?: string, chars?: string): string;
- truncate(string?: string, options?: TruncateOptions): string;
- unescape(string?: string): string;
- upperCase(string?: string): string;
- upperFirst(string?: string): string;
- words(string?: string, pattern?: RegExp|string): Array<string>;
+ camelCase(string?: ?string): string,
+ capitalize(string?: string): string,
+ deburr(string?: string): string,
+ endsWith(string?: string, target?: string, position?: number): boolean,
+ escape(string?: string): string,
+ escapeRegExp(string?: string): string,
+ kebabCase(string?: string): string,
+ lowerCase(string?: string): string,
+ lowerFirst(string?: string): string,
+ pad(string?: string, length?: number, chars?: string): string,
+ padEnd(string?: string, length?: number, chars?: string): string,
+ padStart(string?: string, length?: number, chars?: string): string,
+ parseInt(string: string, radix?: number): number,
+ repeat(string?: string, n?: number): string,
+ replace(
+ string?: string,
+ pattern: RegExp | string,
+ replacement: ((string: string) => string) | string
+ ): string,
+ snakeCase(string?: string): string,
+ split(
+ string?: string,
+ separator: RegExp | string,
+ limit?: number
+ ): Array<string>,
+ startCase(string?: string): string,
+ startsWith(string?: string, target?: string, position?: number): boolean,
+ template(string?: string, options?: TemplateSettings): Function,
+ toLower(string?: string): string,
+ toUpper(string?: string): string,
+ trim(string?: string, chars?: string): string,
+ trimEnd(string?: string, chars?: string): string,
+ trimStart(string?: string, chars?: string): string,
+ truncate(string?: string, options?: TruncateOptions): string,
+ unescape(string?: string): string,
+ upperCase(string?: string): string,
+ upperFirst(string?: string): string,
+ words(string?: string, pattern?: RegExp | string): Array<string>,
+
+ // Util
+ attempt(func: Function, ...args: Array<any>): any,
+ bindAll(object?: ?Object, methodNames: Array<string>): Object,
+ bindAll(object?: ?Object, ...methodNames: Array<string>): Object,
+ cond(pairs: NestedArray<Function>): Function,
+ conforms(source: Object): Function,
+ constant<T>(value: T): () => T,
+ defaultTo<T1: string | boolean | Object, T2>(
+ value: T1,
+ defaultValue: T2
+ ): T1,
+ // NaN is a number instead of its own type, otherwise it would behave like null/void
+ defaultTo<T1: number, T2>(value: T1, defaultValue: T2): T1 | T2,
+ defaultTo<T1: void | null, T2>(value: T1, defaultValue: T2): T2,
+ flow: Flow,
+ flow(funcs?: Array<Function>): Function,
+ flowRight: FlowRight,
+ flowRight(funcs?: Array<Function>): Function,
+ identity<T>(value: T): T,
+ iteratee(func?: any): Function,
+ matches(source: Object): Function,
+ matchesProperty(path?: ?Array<string> | string, srcValue: any): Function,
+ method(path?: ?Array<string> | string, ...args?: Array<any>): Function,
+ methodOf(object?: ?Object, ...args?: Array<any>): Function,
+ mixin<T: Function | Object>(
+ object?: T,
+ source: Object,
+ options?: { chain: boolean }
+ ): T,
+ noConflict(): Lodash,
+ noop(...args: Array<mixed>): void,
+ nthArg(n?: number): Function,
+ over(...iteratees: Array<Function>): Function,
+ over(iteratees: Array<Function>): Function,
+ overEvery(...predicates: Array<Function>): Function,
+ overEvery(predicates: Array<Function>): Function,
+ overSome(...predicates: Array<Function>): Function,
+ overSome(predicates: Array<Function>): Function,
+ property(path?: ?Array<string> | string): Function,
+ propertyOf(object?: ?Object): Function,
+ range(start: number, end: number, step?: number): Array<number>,
+ range(end: number, step?: number): Array<number>,
+ rangeRight(start: number, end: number, step?: number): Array<number>,
+ rangeRight(end: number, step?: number): Array<number>,
+ runInContext(context?: Object): Function,
+
+ stubArray(): Array<*>,
+ stubFalse(): false,
+ stubObject(): {},
+ stubString(): "",
+ stubTrue(): true,
+ times(n: number, ...rest: Array<void>): Array<number>,
+ times<T>(n: number, iteratee: (i: number) => T): Array<T>,
+ toPath(value: any): Array<string>,
+ uniqueId(prefix?: string): string,
+
+ // Properties
+ VERSION: string,
+ templateSettings: TemplateSettings
+ }
+
+ declare var exports: Lodash;
+}
+
+declare module "lodash/fp" {
+ declare type __CurriedFunction1<A, R, AA: A> =
+ & ((...r: [AA]) => R)
+ declare type CurriedFunction1<A, R> = __CurriedFunction1<A, R, *>
+
+ declare type __CurriedFunction2<A, B, R, AA: A, BB: B> =
+ & ((...r: [AA]) => CurriedFunction1<BB, R>)
+ & ((...r: [AA, BB]) => R)
+ declare type CurriedFunction2<A, B, R> = __CurriedFunction2<A, B, R, *, *>
+
+ declare type __CurriedFunction3<A, B, C, R, AA: A, BB: B, CC: C> =
+ & ((...r: [AA]) => CurriedFunction2<BB, CC, R>)
+ & ((...r: [AA, BB]) => CurriedFunction1<CC, R>)
+ & ((...r: [AA, BB, CC]) => R)
+ declare type CurriedFunction3<A, B, C, R> = __CurriedFunction3<A, B, C, R, *, *, *>
+
+ declare type __CurriedFunction4<A, B, C, D, R, AA: A, BB: B, CC: C, DD: D> =
+ & ((...r: [AA]) => CurriedFunction3<BB, CC, DD, R>)
+ & ((...r: [AA, BB]) => CurriedFunction2<CC, DD, R>)
+ & ((...r: [AA, BB, CC]) => CurriedFunction1<DD, R>)
+ & ((...r: [AA, BB, CC, DD]) => R)
+ declare type CurriedFunction4<A, B, C, D, R> = __CurriedFunction4<A, B, C, D, R, *, *, *, *>
+
+ declare type __CurriedFunction5<A, B, C, D, E, R, AA: A, BB: B, CC: C, DD: D, EE: E> =
+ & ((...r: [AA]) => CurriedFunction4<BB, CC, DD, EE, R>)
+ & ((...r: [AA, BB]) => CurriedFunction3<CC, DD, EE, R>)
+ & ((...r: [AA, BB, CC]) => CurriedFunction2<DD, EE, R>)
+ & ((...r: [AA, BB, CC, DD]) => CurriedFunction1<EE, R>)
+ & ((...r: [AA, BB, CC, DD, EE]) => R)
+ declare type CurriedFunction5<A, B, C, D, E, R> = __CurriedFunction5<A, B, C, D, E, R, *, *, *, *, *>
+
+ declare type __CurriedFunction6<A, B, C, D, E, F, R, AA: A, BB: B, CC: C, DD: D, EE: E, FF: F> =
+ & ((...r: [AA]) => CurriedFunction5<BB, CC, DD, EE, FF, R>)
+ & ((...r: [AA, BB]) => CurriedFunction4<CC, DD, EE, FF, R>)
+ & ((...r: [AA, BB, CC]) => CurriedFunction3<DD, EE, FF, R>)
+ & ((...r: [AA, BB, CC, DD]) => CurriedFunction2<EE, FF, R>)
+ & ((...r: [AA, BB, CC, DD, EE]) => CurriedFunction1<FF, R>)
+ & ((...r: [AA, BB, CC, DD, EE, FF]) => R)
+ declare type CurriedFunction6<A, B, C, D, E, F, R> = __CurriedFunction6<A, B, C, D, E, F, R, *, *, *, *, *, *>
+
+ declare type Curry =
+ & (<A, R>((...r: [A]) => R) => CurriedFunction1<A, R>)
+ & (<A, B, R>((...r: [A, B]) => R) => CurriedFunction2<A, B, R>)
+ & (<A, B, C, R>((...r: [A, B, C]) => R) => CurriedFunction3<A, B, C, R>)
+ & (<A, B, C, D, R>((...r: [A, B, C, D]) => R) => CurriedFunction4<A, B, C, D, R>)
+ & (<A, B, C, D, E, R>((...r: [A, B, C, D, E]) => R) => CurriedFunction5<A, B, C, D, E, R>)
+ & (<A, B, C, D, E, F, R>((...r: [A, B, C, D, E, F]) => R) => CurriedFunction6<A, B, C, D, E, F, R>)
+
+ declare type UnaryFn<A,R> = (a: A) => R;
+
+ declare type Flow = (<A,B,C,D,E,F,G>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, cd: UnaryFn<C,D>, de: UnaryFn<D,E>, ef: UnaryFn<E,F>, fg: UnaryFn<F,G>, ...rest: Array<void>) => UnaryFn<A,G>)
+ & (<A,B,C,D,E,F>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, cd: UnaryFn<C,D>, de: UnaryFn<D,E>, ef: UnaryFn<E,F>, ...rest: Array<void>) => UnaryFn<A,F>)
+ & (<A,B,C,D,E>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, cd: UnaryFn<C,D>, de: UnaryFn<D,E>, ...rest: Array<void>) => UnaryFn<A,E>)
+ & (<A,B,C,D>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, cd: UnaryFn<C,D>, ...rest: Array<void>) => UnaryFn<A,D>)
+ & (<A,B,C>(ab: UnaryFn<A,B>, bc: UnaryFn<B,C>, ...rest: Array<void>) => UnaryFn<A,C>)
+ & (<A,B>(ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,B>)
+
+ declare type FlowRight = & (<A,B,C,D,E,F,G>(fg: UnaryFn<F,G>, ef: UnaryFn<E,F>, de: UnaryFn<D,E>, cd: UnaryFn<C,D>, bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,G>)
+ & (<A,B,C,D,E,F>(ef: UnaryFn<E,F>, de: UnaryFn<D,E>, cd: UnaryFn<C,D>, bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,F>)
+ & (<A,B,C,D,E>(de: UnaryFn<D,E>, cd: UnaryFn<C,D>, bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,E>)
+ & (<A,B,C,D>(cd: UnaryFn<C,D>, bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,D>)
+ & (<A,B,C>(bc: UnaryFn<B,C>, ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,C>)
+ & (<A,B>(ab: UnaryFn<A,B>, ...rest: Array<void>) => UnaryFn<A,B>)
+
+ declare type TemplateSettings = {
+ escape?: RegExp,
+ evaluate?: RegExp,
+ imports?: Object,
+ interpolate?: RegExp,
+ variable?: string
+ };
+
+ declare type TruncateOptions = {
+ length?: number,
+ omission?: string,
+ separator?: RegExp | string
+ };
+
+ declare type DebounceOptions = {
+ leading?: boolean,
+ maxWait?: number,
+ trailing?: boolean
+ };
+
+ declare type ThrottleOptions = {
+ leading?: boolean,
+ trailing?: boolean
+ };
+
+ declare type NestedArray<T> = Array<Array<T>>;
+
+ declare type matchesIterateeShorthand = Object;
+ declare type matchesPropertyIterateeShorthand = [string, any];
+ declare type propertyIterateeShorthand = string;
+
+ declare type OPredicate<A> =
+ | ((value: A) => any)
+ | matchesIterateeShorthand
+ | matchesPropertyIterateeShorthand
+ | propertyIterateeShorthand;
+
+ declare type OIterateeWithResult<V, R> =
+ | Object
+ | string
+ | ((value: V) => R);
+ declare type OIteratee<O> = OIterateeWithResult<any, any>;
+ declare type OFlatMapIteratee<T, U> = OIterateeWithResult<any, Array<U>>;
+
+ declare type Predicate<T> =
+ | ((value: T) => any)
+ | matchesIterateeShorthand
+ | matchesPropertyIterateeShorthand
+ | propertyIterateeShorthand;
+
+ declare type _ValueOnlyIteratee<T> = (value: T) => mixed;
+ declare type ValueOnlyIteratee<T> = _ValueOnlyIteratee<T> | string;
+ declare type _Iteratee<T> = (item: T) => mixed;
+ declare type Iteratee<T> = _Iteratee<T> | Object | string;
+ declare type FlatMapIteratee<T, U> =
+ | ((item: T) => Array<U>)
+ | Object
+ | string;
+ declare type Comparator<T> = (item: T, item2: T) => boolean;
+
+ declare type MapIterator<T, U> =
+ | ((item: T) => U)
+ | propertyIterateeShorthand;
+
+ declare type OMapIterator<T, U> =
+ | ((item: T) => U)
+ | propertyIterateeShorthand;
+
+ declare class Lodash {
+ // Array
+ chunk<T>(size: number): (array: Array<T>) => Array<Array<T>>,
+ chunk<T>(size: number, array: Array<T>): Array<Array<T>>,
+ compact<T, N: T>(array: Array<N>): Array<T>,
+ concat<T, U, A: Array<T> | T, B: Array<U> | U>(base: A): (elements: B) => Array<T | U>,
+ concat<T, U, A: Array<T> | T, B: Array<U> | U>(base: A, elements: B): Array<T | U>,
+ difference<T>(values: Array<T>): (array: Array<T>) => Array<T>,
+ difference<T>(values: Array<T>, array: Array<T>): Array<T>,
+ differenceBy<T>(iteratee: ValueOnlyIteratee<T>): ((values: Array<T>) => (array: Array<T>) => T[]) & ((values: Array<T>, array: Array<T>) => T[]),
+ differenceBy<T>(iteratee: ValueOnlyIteratee<T>, values: Array<T>): (array: Array<T>) => T[],
+ differenceBy<T>(iteratee: ValueOnlyIteratee<T>, values: Array<T>, array: Array<T>): T[],
+ differenceWith<T>(values: T[]): ((comparator: Comparator<T>) => (array: T[]) => T[]) & ((comparator: Comparator<T>, array: T[]) => T[]),
+ differenceWith<T>(values: T[], comparator: Comparator<T>): (array: T[]) => T[],
+ differenceWith<T>(values: T[], comparator: Comparator<T>, array: T[]): T[],
+ drop<T>(n: number): (array: Array<T>) => Array<T>,
+ drop<T>(n: number, array: Array<T>): Array<T>,
+ dropLast<T>(n: number): (array: Array<T>) => Array<T>,
+ dropLast<T>(n: number, array: Array<T>): Array<T>,
+ dropRight<T>(n: number): (array: Array<T>) => Array<T>,
+ dropRight<T>(n: number, array: Array<T>): Array<T>,
+ dropRightWhile<T>(predicate: Predicate<T>): (array: Array<T>) => Array<T>,
+ dropRightWhile<T>(predicate: Predicate<T>, array: Array<T>): Array<T>,
+ dropWhile<T>(predicate: Predicate<T>): (array: Array<T>) => Array<T>,
+ dropWhile<T>(predicate: Predicate<T>, array: Array<T>): Array<T>,
+ dropLastWhile<T>(predicate: Predicate<T>): (array: Array<T>) => Array<T>,
+ dropLastWhile<T>(predicate: Predicate<T>, array: Array<T>): Array<T>,
+ fill<T, U>(start: number): ((end: number) => (((value: U) => (array: Array<T>) => Array<T | U>) & ((value: U, array: Array<T>) => Array<T | U>))) & ((end: number, value: U) => (array: Array<T>) => Array<T | U>) & ((end: number, value: U, array: Array<T>) => Array<T | U>),
+ fill<T, U>(start: number, end: number): ((value: U) => (array: Array<T>) => Array<T | U>) & ((value: U, array: Array<T>) => Array<T | U>),
+ fill<T, U>(start: number, end: number, value: U): (array: Array<T>) => Array<T | U>,
+ fill<T, U>(start: number, end: number, value: U, array: Array<T>): Array<T | U>,
+ findIndex<T>(predicate: Predicate<T>): (array: Array<T>) => number,
+ findIndex<T>(predicate: Predicate<T>, array: Array<T>): number,
+ findIndexFrom<T>(predicate: Predicate<T>): ((fromIndex: number) => (array: Array<T>) => number) & ((fromIndex: number, array: Array<T>) => number),
+ findIndexFrom<T>(predicate: Predicate<T>, fromIndex: number): (array: Array<T>) => number,
+ findIndexFrom<T>(predicate: Predicate<T>, fromIndex: number, array: Array<T>): number,
+ findLastIndex<T>(predicate: Predicate<T>): (array: Array<T>) => number,
+ findLastIndex<T>(predicate: Predicate<T>, array: Array<T>): number,
+ findLastIndexFrom<T>(predicate: Predicate<T>): ((fromIndex: number) => (array: Array<T>) => number) & ((fromIndex: number, array: Array<T>) => number),
+ findLastIndexFrom<T>(predicate: Predicate<T>, fromIndex: number): (array: Array<T>) => number,
+ findLastIndexFrom<T>(predicate: Predicate<T>, fromIndex: number, array: Array<T>): number,
+ // alias of _.head
+ first<T>(array: Array<T>): T,
+ flatten<T, X>(array: Array<Array<T> | X>): Array<T | X>,
+ unnest<T, X>(array: Array<Array<T> | X>): Array<T | X>,
+ flattenDeep<T>(array: any[]): Array<T>,
+ flattenDepth(depth: number): (array: any[]) => any[],
+ flattenDepth(depth: number, array: any[]): any[],
+ fromPairs<T>(pairs: Array<T>): Object,
+ head<T>(array: Array<T>): T,
+ indexOf<T>(value: T): (array: Array<T>) => number,
+ indexOf<T>(value: T, array: Array<T>): number,
+ indexOfFrom<T>(value: T): ((fromIndex: number) => (array: Array<T>) => number) & ((fromIndex: number, array: Array<T>) => number),
+ indexOfFrom<T>(value: T, fromIndex: number): (array: Array<T>) => number,
+ indexOfFrom<T>(value: T, fromIndex: number, array: Array<T>): number,
+ initial<T>(array: Array<T>): Array<T>,
+ init<T>(array: Array<T>): Array<T>,
+ intersection<T>(a1: Array<T>): (a2: Array<T>) => Array<T>,
+ intersection<T>(a1: Array<T>, a2: Array<T>): Array<T>,
+ intersectionBy<T>(iteratee: ValueOnlyIteratee<T>): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) & ((a1: Array<T>, a2: Array<T>) => Array<T>),
+ intersectionBy<T>(iteratee: ValueOnlyIteratee<T>, a1: Array<T>): (a2: Array<T>) => Array<T>,
+ intersectionBy<T>(iteratee: ValueOnlyIteratee<T>, a1: Array<T>, a2: Array<T>): Array<T>,
+ intersectionWith<T>(comparator: Comparator<T>): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) & ((a1: Array<T>, a2: Array<T>) => Array<T>),
+ intersectionWith<T>(comparator: Comparator<T>, a1: Array<T>): (a2: Array<T>) => Array<T>,
+ intersectionWith<T>(comparator: Comparator<T>, a1: Array<T>, a2: Array<T>): Array<T>,
+ join<T>(separator: string): (array: Array<T>) => string,
+ join<T>(separator: string, array: Array<T>): string,
+ last<T>(array: Array<T>): T,
+ lastIndexOf<T>(value: T): (array: Array<T>) => number,
+ lastIndexOf<T>(value: T, array: Array<T>): number,
+ lastIndexOfFrom<T>(value: T): ((fromIndex: number) => (array: Array<T>) => number) & ((fromIndex: number, array: Array<T>) => number),
+ lastIndexOfFrom<T>(value: T, fromIndex: number): (array: Array<T>) => number,
+ lastIndexOfFrom<T>(value: T, fromIndex: number, array: Array<T>): number,
+ nth<T>(n: number): (array: T[]) => T,
+ nth<T>(n: number, array: T[]): T,
+ pull<T>(value: T): (array: Array<T>) => Array<T>,
+ pull<T>(value: T, array: Array<T>): Array<T>,
+ pullAll<T>(values: Array<T>): (array: Array<T>) => Array<T>,
+ pullAll<T>(values: Array<T>, array: Array<T>): Array<T>,
+ pullAllBy<T>(iteratee: ValueOnlyIteratee<T>): ((values: Array<T>) => (array: Array<T>) => Array<T>) & ((values: Array<T>, array: Array<T>) => Array<T>),
+ pullAllBy<T>(iteratee: ValueOnlyIteratee<T>, values: Array<T>): (array: Array<T>) => Array<T>,
+ pullAllBy<T>(iteratee: ValueOnlyIteratee<T>, values: Array<T>, array: Array<T>): Array<T>,
+ pullAllWith<T>(comparator: Function): ((values: T[]) => (array: T[]) => T[]) & ((values: T[], array: T[]) => T[]),
+ pullAllWith<T>(comparator: Function, values: T[]): (array: T[]) => T[],
+ pullAllWith<T>(comparator: Function, values: T[], array: T[]): T[],
+ pullAt<T>(indexed: Array<number>): (array: Array<T>) => Array<T>,
+ pullAt<T>(indexed: Array<number>, array: Array<T>): Array<T>,
+ remove<T>(predicate: Predicate<T>): (array: Array<T>) => Array<T>,
+ remove<T>(predicate: Predicate<T>, array: Array<T>): Array<T>,
+ reverse<T>(array: Array<T>): Array<T>,
+ slice<T>(start: number): ((end: number) => (array: Array<T>) => Array<T>) & ((end: number, array: Array<T>) => Array<T>),
+ slice<T>(start: number, end: number): (array: Array<T>) => Array<T>,
+ slice<T>(start: number, end: number, array: Array<T>): Array<T>,
+ sortedIndex<T>(value: T): (array: Array<T>) => number,
+ sortedIndex<T>(value: T, array: Array<T>): number,
+ sortedIndexBy<T>(iteratee: ValueOnlyIteratee<T>): ((value: T) => (array: Array<T>) => number) & ((value: T, array: Array<T>) => number),
+ sortedIndexBy<T>(iteratee: ValueOnlyIteratee<T>, value: T): (array: Array<T>) => number,
+ sortedIndexBy<T>(iteratee: ValueOnlyIteratee<T>, value: T, array: Array<T>): number,
+ sortedIndexOf<T>(value: T): (array: Array<T>) => number,
+ sortedIndexOf<T>(value: T, array: Array<T>): number,
+ sortedLastIndex<T>(value: T): (array: Array<T>) => number,
+ sortedLastIndex<T>(value: T, array: Array<T>): number,
+ sortedLastIndexBy<T>(iteratee: ValueOnlyIteratee<T>): ((value: T) => (array: Array<T>) => number) & ((value: T, array: Array<T>) => number),
+ sortedLastIndexBy<T>(iteratee: ValueOnlyIteratee<T>, value: T): (array: Array<T>) => number,
+ sortedLastIndexBy<T>(iteratee: ValueOnlyIteratee<T>, value: T, array: Array<T>): number,
+ sortedLastIndexOf<T>(value: T): (array: Array<T>) => number,
+ sortedLastIndexOf<T>(value: T, array: Array<T>): number,
+ sortedUniq<T>(array: Array<T>): Array<T>,
+ sortedUniqBy<T>(iteratee: (value: T) => mixed): (array: Array<T>) => Array<T>,
+ sortedUniqBy<T>(iteratee: (value: T) => mixed, array: Array<T>): Array<T>,
+ tail<T>(array: Array<T>): Array<T>,
+ take<T>(n: number): (array: Array<T>) => Array<T>,
+ take<T>(n: number, array: Array<T>): Array<T>,
+ takeRight<T>(n: number): (array: Array<T>) => Array<T>,
+ takeRight<T>(n: number, array: Array<T>): Array<T>,
+ takeLast<T>(n: number): (array: Array<T>) => Array<T>,
+ takeLast<T>(n: number, array: Array<T>): Array<T>,
+ takeRightWhile<T>(predicate: Predicate<T>): (array: Array<T>) => Array<T>,
+ takeRightWhile<T>(predicate: Predicate<T>, array: Array<T>): Array<T>,
+ takeLastWhile<T>(predicate: Predicate<T>): (array: Array<T>) => Array<T>,
+ takeLastWhile<T>(predicate: Predicate<T>, array: Array<T>): Array<T>,
+ takeWhile<T>(predicate: Predicate<T>): (array: Array<T>) => Array<T>,
+ takeWhile<T>(predicate: Predicate<T>, array: Array<T>): Array<T>,
+ union<T>(a1: Array<T>): (a2: Array<T>) => Array<T>,
+ union<T>(a1: Array<T>, a2: Array<T>): Array<T>,
+ unionBy<T>(iteratee: ValueOnlyIteratee<T>): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) & ((a1: Array<T>, a2: Array<T>) => Array<T>),
+ unionBy<T>(iteratee: ValueOnlyIteratee<T>, a1: Array<T>): (a2: Array<T>) => Array<T>,
+ unionBy<T>(iteratee: ValueOnlyIteratee<T>, a1: Array<T>, a2: Array<T>): Array<T>,
+ unionWith<T>(comparator: Comparator<T>): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) & ((a1: Array<T>, a2: Array<T>) => Array<T>),
+ unionWith<T>(comparator: Comparator<T>, a1: Array<T>): (a2: Array<T>) => Array<T>,
+ unionWith<T>(comparator: Comparator<T>, a1: Array<T>, a2: Array<T>): Array<T>,
+ uniq<T>(array: Array<T>): Array<T>,
+ uniqBy<T>(iteratee: ValueOnlyIteratee<T>): (array: Array<T>) => Array<T>,
+ uniqBy<T>(iteratee: ValueOnlyIteratee<T>, array: Array<T>): Array<T>,
+ uniqWith<T>(comparator: Comparator<T>): (array: Array<T>) => Array<T>,
+ uniqWith<T>(comparator: Comparator<T>, array: Array<T>): Array<T>,
+ unzip<T>(array: Array<T>): Array<T>,
+ unzipWith<T>(iteratee: Iteratee<T>): (array: Array<T>) => Array<T>,
+ unzipWith<T>(iteratee: Iteratee<T>, array: Array<T>): Array<T>,
+ without<T>(values: Array<T>): (array: Array<T>) => Array<T>,
+ without<T>(values: Array<T>, array: Array<T>): Array<T>,
+ xor<T>(a1: Array<T>): (a2: Array<T>) => Array<T>,
+ xor<T>(a1: Array<T>, a2: Array<T>): Array<T>,
+ symmetricDifference<T>(a1: Array<T>): (a2: Array<T>) => Array<T>,
+ symmetricDifference<T>(a1: Array<T>, a2: Array<T>): Array<T>,
+ xorBy<T>(iteratee: ValueOnlyIteratee<T>): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) & ((a1: Array<T>, a2: Array<T>) => Array<T>),
+ xorBy<T>(iteratee: ValueOnlyIteratee<T>, a1: Array<T>): (a2: Array<T>) => Array<T>,
+ xorBy<T>(iteratee: ValueOnlyIteratee<T>, a1: Array<T>, a2: Array<T> ): Array<T>,
+ symmetricDifferenceBy<T>(iteratee: ValueOnlyIteratee<T>): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) & ((a1: Array<T>, a2: Array<T>) => Array<T>),
+ symmetricDifferenceBy<T>(iteratee: ValueOnlyIteratee<T>, a1: Array<T>): (a2: Array<T>) => Array<T>,
+ symmetricDifferenceBy<T>(iteratee: ValueOnlyIteratee<T>, a1: Array<T>, a2: Array<T> ): Array<T>,
+ xorWith<T>(comparator: Comparator<T>): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) & ((a1: Array<T>, a2: Array<T>) => Array<T>),
+ xorWith<T>(comparator: Comparator<T>, a1: Array<T>): (a2: Array<T>) => Array<T>,
+ xorWith<T>(comparator: Comparator<T>, a1: Array<T>, a2: Array<T>): Array<T>,
+ symmetricDifferenceWith<T>(comparator: Comparator<T>): ((a1: Array<T>) => (a2: Array<T>) => Array<T>) & ((a1: Array<T>, a2: Array<T>) => Array<T>),
+ symmetricDifferenceWith<T>(comparator: Comparator<T>, a1: Array<T>): (a2: Array<T>) => Array<T>,
+ symmetricDifferenceWith<T>(comparator: Comparator<T>, a1: Array<T>, a2: Array<T>): Array<T>,
+ zip<A, B>(a1: A[]): (a2: B[]) => Array<[A, B]>,
+ zip<A, B>(a1: A[], a2: B[]): Array<[A, B]>,
+ zipAll(arrays: Array<Array<any>>): Array<any>,
+ zipObject(props: Array<any>): (values: Array<any>) => Object,
+ zipObject(props: Array<any>, values: Array<any>): Object,
+ zipObj(props: Array<any>): (values: Array<any>) => Object,
+ zipObj(props: Array<any>, values: Array<any>): Object,
+ zipObjectDeep(props: any[]): (values: any) => Object,
+ zipObjectDeep(props: any[], values: any): Object,
+ zipWith<T>(iteratee: Iteratee<T>): ((a1: NestedArray<T>) => (a2: NestedArray<T>) => Array<T>) & ((a1: NestedArray<T>, a2: NestedArray<T>) => Array<T>),
+ zipWith<T>(iteratee: Iteratee<T>, a1: NestedArray<T>): (a2: NestedArray<T>) => Array<T>,
+ zipWith<T>(iteratee: Iteratee<T>, a1: NestedArray<T>, a2: NestedArray<T>): Array<T>,
+ // Collection
+ countBy<T>(iteratee: ValueOnlyIteratee<T>): (collection: Array<T> | { [id: any]: T }) => { [string]: number },
+ countBy<T>(iteratee: ValueOnlyIteratee<T>, collection: Array<T> | { [id: any]: T }): { [string]: number },
+ // alias of _.forEach
+ each<T>(iteratee: Iteratee<T> | OIteratee<T>): (collection: Array<T> | { [id: any]: T }) => Array<T>,
+ each<T>(iteratee: Iteratee<T> | OIteratee<T>, collection: Array<T> | { [id: any]: T }): Array<T>,
+ // alias of _.forEachRight
+ eachRight<T>(iteratee: Iteratee<T> | OIteratee<T>): (collection: Array<T> | { [id: any]: T }) => Array<T>,
+ eachRight<T>(iteratee: Iteratee<T> | OIteratee<T>, collection: Array<T> | { [id: any]: T }): Array<T>,
+ every<T>(iteratee: Iteratee<T> | OIteratee<T>): (collection: Array<T> | { [id: any]: T }) => boolean,
+ every<T>(iteratee: Iteratee<T> | OIteratee<T>, collection: Array<T> | { [id: any]: T }): boolean,
+ all<T>(iteratee: Iteratee<T> | OIteratee<T>): (collection: Array<T> | { [id: any]: T }) => boolean,
+ all<T>(iteratee: Iteratee<T> | OIteratee<T>, collection: Array<T> | { [id: any]: T }): boolean,
+ filter<T>(predicate: Predicate<T> | OPredicate<T>): (collection: Array<T> | { [id: any]: T }) => Array<T>,
+ filter<T>(predicate: Predicate<T> | OPredicate<T>, collection: Array<T> | { [id: any]: T }): Array<T>,
+ find<T>(predicate: Predicate<T> | OPredicate<T>): (collection: Array<T> | { [id: any]: T }) => T | void,
+ find<T>(predicate: Predicate<T> | OPredicate<T>, collection: Array<T> | { [id: any]: T }): T | void,
+ findFrom<T>(predicate: Predicate<T> | OPredicate<T>): ((fromIndex: number) => (collection: Array<T> | { [id: any]: T }) => T | void) & ((fromIndex: number, collection: Array<T> | { [id: any]: T }) => T | void),
+ findFrom<T>(predicate: Predicate<T> | OPredicate<T>, fromIndex: number): (collection: Array<T> | { [id: any]: T }) => T | void,
+ findFrom<T>(predicate: Predicate<T> | OPredicate<T>, fromIndex: number, collection: Array<T> | { [id: any]: T }): T | void,
+ findLast<T>(predicate: Predicate<T> | OPredicate<T>): (collection: Array<T> | { [id: any]: T }) => T | void,
+ findLast<T>(predicate: Predicate<T> | OPredicate<T>, collection: Array<T> | { [id: any]: T }): T | void,
+ findLastFrom<T>(predicate: Predicate<T> | OPredicate<T>): ((fromIndex: number) => (collection: Array<T> | { [id: any]: T }) => T | void) & ((fromIndex: number, collection: Array<T> | { [id: any]: T }) => T | void),
+ findLastFrom<T>(predicate: Predicate<T> | OPredicate<T>, fromIndex: number): (collection: Array<T> | { [id: any]: T }) => T | void,
+ findLastFrom<T>(predicate: Predicate<T> | OPredicate<T>, fromIndex: number, collection: Array<T> | { [id: any]: T }): T | void,
+ flatMap<T, U>(iteratee: FlatMapIteratee<T, U> | OFlatMapIteratee<T, U>): (collection: Array<T> | { [id: any]: T }) => Array<U>,
+ flatMap<T, U>(iteratee: FlatMapIteratee<T, U> | OFlatMapIteratee<T, U>, collection: Array<T> | { [id: any]: T }): Array<U>,
+ flatMapDeep<T, U>(iteratee: FlatMapIteratee<T, U> | OFlatMapIteratee<T, U>): (collection: Array<T> | { [id: any]: T }) => Array<U>,
+ flatMapDeep<T, U>(iteratee: FlatMapIteratee<T, U> | OFlatMapIteratee<T, U>, collection: Array<T> | { [id: any]: T }): Array<U>,
+ flatMapDepth<T, U>(iteratee: FlatMapIteratee<T, U> | OFlatMapIteratee<T, U>): ((depth: number) => (collection: Array<T> | { [id: any]: T }) => Array<U>) & ((depth: number, collection: Array<T> | { [id: any]: T }) => Array<U>),
+ flatMapDepth<T, U>(iteratee: FlatMapIteratee<T, U> | OFlatMapIteratee<T, U>, depth: number): (collection: Array<T> | { [id: any]: T }) => Array<U>,
+ flatMapDepth<T, U>(iteratee: FlatMapIteratee<T, U> | OFlatMapIteratee<T, U>, depth: number, collection: Array<T> | { [id: any]: T }): Array<U>,
+ forEach<T>(iteratee: Iteratee<T> | OIteratee<T>): (collection: Array<T> | { [id: any]: T }) => Array<T>,
+ forEach<T>(iteratee: Iteratee<T> | OIteratee<T>, collection: Array<T> | { [id: any]: T }): Array<T>,
+ forEachRight<T>(iteratee: Iteratee<T> | OIteratee<T>): (collection: Array<T> | { [id: any]: T }) => Array<T>,
+ forEachRight<T>(iteratee: Iteratee<T> | OIteratee<T>, collection: Array<T> | { [id: any]: T }): Array<T>,
+ groupBy<V, T>(iteratee: ValueOnlyIteratee<T>): (collection: Array<T> | { [id: any]: T }) => { [key: V]: Array<T> },
+ groupBy<V, T>(iteratee: ValueOnlyIteratee<T>, collection: Array<T> | { [id: any]: T }): { [key: V]: Array<T> },
+ includes(value: string): (str: string) => boolean,
+ includes(value: string, str: string): boolean,
+ includes<T>(value: T): (collection: Array<T> | { [id: any]: T }) => boolean,
+ includes<T>(value: T, collection: Array<T> | { [id: any]: T }): boolean,
+ contains(value: string): (str: string) => boolean,
+ contains(value: string, str: string): boolean,
+ contains<T>(value: T): (collection: Array<T> | { [id: any]: T }) => boolean,
+ contains<T>(value: T, collection: Array<T> | { [id: any]: T }): boolean,
+ includesFrom(value: string): ((fromIndex: number) => (str: string) => boolean) & ((fromIndex: number, str: string) => boolean),
+ includesFrom(value: string, fromIndex: number): (str: string) => boolean,
+ includesFrom(value: string, fromIndex: number, str: string): boolean,
+ includesFrom<T>(value: T): ((fromIndex: number) => (collection: Array<T>) => boolean) & ((fromIndex: number, collection: Array<T>) => boolean),
+ includesFrom<T>(value: T, fromIndex: number): (collection: Array<T>) => boolean,
+ includesFrom<T>(value: T, fromIndex: number, collection: Array<T>): boolean,
+ invokeMap<T>(path: ((value: T) => Array<string> | string) | Array<string> | string): (collection: Array<T> | { [id: any]: T }) => Array<any>,
+ invokeMap<T>(path: ((value: T) => Array<string> | string) | Array<string> | string, collection: Array<T> | { [id: any]: T }): Array<any>,
+ invokeArgsMap<T>(path: ((value: T) => Array<string> | string) | Array<string> | string): ((collection: Array<T> | { [id: any]: T }) => (args: Array<any>) => Array<any>) & ((collection: Array<T> | { [id: any]: T }, args: Array<any>) => Array<any>),
+ invokeArgsMap<T>(path: ((value: T) => Array<string> | string) | Array<string> | string, collection: Array<T> | { [id: any]: T }): (args: Array<any>) => Array<any>,
+ invokeArgsMap<T>(path: ((value: T) => Array<string> | string) | Array<string> | string, collection: Array<T> | { [id: any]: T }, args: Array<any>): Array<any>,
+ keyBy<T, V>(iteratee: ValueOnlyIteratee<T>): (collection: Array<T> | { [id: any]: T }) => { [key: V]: T },
+ keyBy<T, V>(iteratee: ValueOnlyIteratee<T>, collection: Array<T> | { [id: any]: T }): { [key: V]: T },
+ indexBy<T, V>(iteratee: ValueOnlyIteratee<T>): (collection: Array<T> | { [id: any]: T }) => { [key: V]: T },
+ indexBy<T, V>(iteratee: ValueOnlyIteratee<T>, collection: Array<T> | { [id: any]: T }): { [key: V]: T },
+ map<T, U>(iteratee: MapIterator<T, U> | OMapIterator<T, U>): (collection: Array<T> | { [id: any]: T}) => Array<U>,
+ map<T, U>(iteratee: MapIterator<T, U> | OMapIterator<T, U>, collection: Array<T> | { [id: any]: T}): Array<U>,
+ map(iteratee: (char: string) => any): (str: string) => string,
+ map(iteratee: (char: string) => any, str: string): string,
+ pluck<T, U>(iteratee: MapIterator<T, U> | OMapIterator<T, U>): (collection: Array<T> | { [id: any]: T}) => Array<U>,
+ pluck<T, U>(iteratee: MapIterator<T, U> | OMapIterator<T, U>, collection: Array<T> | { [id: any]: T}): Array<U>,
+ pluck(iteratee: (char: string) => any): (str: string) => string,
+ pluck(iteratee: (char: string) => any, str: string): string,
+ orderBy<T>(iteratees: Array<Iteratee<T> | OIteratee<*>> | string): ((orders: Array<"asc" | "desc"> | string) => (collection: Array<T> | { [id: any]: T}) => Array<T>) & ((orders: Array<"asc" | "desc"> | string, collection: Array<T> | { [id: any]: T}) => Array<T>),
+ orderBy<T>(iteratees: Array<Iteratee<T> | OIteratee<*>> | string, orders: Array<"asc" | "desc"> | string): (collection: Array<T> | { [id: any]: T}) => Array<T>,
+ orderBy<T>(iteratees: Array<Iteratee<T> | OIteratee<*>> | string, orders: Array<"asc" | "desc"> | string, collection: Array<T> | { [id: any]: T}): Array<T>,
+ partition<T>(predicate: Predicate<T> | OPredicate<T>): (collection: Array<T> | { [id: any]: T }) => NestedArray<T>,
+ partition<T>(predicate: Predicate<T> | OPredicate<T>, collection: Array<T> | { [id: any]: T }): NestedArray<T>,
+ reduce<T, U>(iteratee: (accumulator: U, value: T) => U): ((accumulator: U) => (collection: Array<T> | { [id: any]: T}) => U) & ((accumulator: U, collection: Array<T> | { [id: any]: T}) => U),
+ reduce<T, U>(iteratee: (accumulator: U, value: T) => U, accumulator: U): (collection: Array<T> | { [id: any]: T}) => U,
+ reduce<T, U>(iteratee: (accumulator: U, value: T) => U, accumulator: U, collection: Array<T> | { [id: any]: T}): U,
+ reduceRight<T, U>(iteratee: (value: T, accumulator: U) => U): ((accumulator: U) => (collection: Array<T> | { [id: any]: T }) => U) & ((accumulator: U, collection: Array<T> | { [id: any]: T }) => U),
+ reduceRight<T, U>(iteratee: (value: T, accumulator: U) => U, accumulator: U): (collection: Array<T> | { [id: any]: T }) => U,
+ reduceRight<T, U>(iteratee: (value: T, accumulator: U) => U, accumulator: U, collection: Array<T> | { [id: any]: T }): U,
+ reject<T>(predicate: Predicate<T> | OPredicate<T>): (collection: Array<T> | { [id: any]: T }) => Array<T>,
+ reject<T>(predicate: Predicate<T> | OPredicate<T>, collection: Array<T> | { [id: any]: T }): Array<T>,
+ sample<T>(collection: Array<T> | { [id: any]: T }): T,
+ sampleSize<T>(n: number): (collection: Array<T> | { [id: any]: T }) => Array<T>,
+ sampleSize<T>(n: number, collection: Array<T> | { [id: any]: T }): Array<T>,
+ shuffle<T>(collection: Array<T> | { [id: any]: T }): Array<T>,
+ size(collection: Array<any> | Object): number,
+ some<T>(predicate: Predicate<T> | OPredicate<T>): (collection: Array<T> | { [id: any]: T }) => boolean,
+ some<T>(predicate: Predicate<T> | OPredicate<T>, collection: Array<T> | { [id: any]: T }): boolean,
+ any<T>(predicate: Predicate<T> | OPredicate<T>): (collection: Array<T> | { [id: any]: T }) => boolean,
+ any<T>(predicate: Predicate<T> | OPredicate<T>, collection: Array<T> | { [id: any]: T }): boolean,
+ sortBy<T>(iteratees: Array<Iteratee<T> | OIteratee<T>> | Iteratee<T> | OIteratee<T>): (collection: Array<T> | { [id: any]: T }) => Array<T>,
+ sortBy<T>(iteratees: Array<Iteratee<T> | OIteratee<T>> | Iteratee<T> | OIteratee<T>, collection: Array<T> | { [id: any]: T }): Array<T>,
+
+ // Date
+ now(): number,
+
+ // Function
+ after(fn: Function): (n: number) => Function,
+ after(fn: Function, n: number): Function,
+ ary(func: Function): Function,
+ nAry(n: number): (func: Function) => Function,
+ nAry(n: number, func: Function): Function,
+ before(fn: Function): (n: number) => Function,
+ before(fn: Function, n: number): Function,
+ bind(func: Function): (thisArg: any) => Function,
+ bind(func: Function, thisArg: any): Function,
+ bindKey(obj: Object): (key: string) => Function,
+ bindKey(obj: Object, key: string): Function,
+ curry: Curry,
+ curryN(arity: number): (func: Function) => Function,
+ curryN(arity: number, func: Function): Function,
+ curryRight(func: Function): Function,
+ curryRightN(arity: number): (func: Function) => Function,
+ curryRightN(arity: number, func: Function): Function,
+ debounce(wait: number): (func: Function) => Function,
+ debounce(wait: number, func: Function): Function,
+ defer(func: Function): number,
+ delay(wait: number): (func: Function) => number,
+ delay(wait: number, func: Function): number,
+ flip(func: Function): Function,
+ memoize(func: Function): Function,
+ negate(predicate: Function): Function,
+ complement(predicate: Function): Function,
+ once(func: Function): Function,
+ overArgs(func: Function): (transforms: Array<Function>) => Function,
+ overArgs(func: Function, transforms: Array<Function>): Function,
+ useWith(func: Function): (transforms: Array<Function>) => Function,
+ useWith(func: Function, transforms: Array<Function>): Function,
+ partial(func: Function): (partials: any[]) => Function,
+ partial(func: Function, partials: any[]): Function,
+ partialRight(func: Function): (partials: Array<any>) => Function,
+ partialRight(func: Function, partials: Array<any>): Function,
+ rearg(indexes: Array<number>): (func: Function) => Function,
+ rearg(indexes: Array<number>, func: Function): Function,
+ rest(func: Function): Function,
+ unapply(func: Function): Function,
+ restFrom(start: number): (func: Function) => Function,
+ restFrom(start: number, func: Function): Function,
+ spread(func: Function): Function,
+ apply(func: Function): Function,
+ spreadFrom(start: number): (func: Function) => Function,
+ spreadFrom(start: number, func: Function): Function,
+ throttle(wait: number): (func: Function) => Function,
+ throttle(wait: number, func: Function): Function,
+ unary(func: Function): Function,
+ wrap(wrapper: Function): (value: any) => Function,
+ wrap(wrapper: Function, value: any): Function,
+
+ // Lang
+ castArray(value: *): any[],
+ clone<T>(value: T): T,
+ cloneDeep<T>(value: T): T,
+ cloneDeepWith<T, U>(customizer: (value: T, key: number | string, object: T, stack: any) => U): (value: T) => U,
+ cloneDeepWith<T, U>(customizer: (value: T, key: number | string, object: T, stack: any) => U, value: T): U,
+ cloneWith<T, U>(customizer: (value: T, key: number | string, object: T, stack: any) => U): (value: T) => U,
+ cloneWith<T, U>(customizer: (value: T, key: number | string, object: T, stack: any) => U, value: T): U,
+ conformsTo<T: { [key: string]: mixed }>(predicates: T & { [key: string]: (x: any) => boolean }): (source: T) => boolean,
+ conformsTo<T: { [key: string]: mixed }>(predicates: T & { [key: string]: (x: any) => boolean }, source: T): boolean,
+ where<T: { [key: string]: mixed }>(predicates: T & { [key: string]: (x: any) => boolean }): (source: T) => boolean,
+ where<T: { [key: string]: mixed }>(predicates: T & { [key: string]: (x: any) => boolean }, source: T): boolean,
+ conforms<T: { [key: string]: mixed }>(predicates: T & { [key: string]: (x: any) => boolean }): (source: T) => boolean,
+ conforms<T: { [key: string]: mixed }>(predicates: T & { [key: string]: (x: any) => boolean }, source: T): boolean,
+ eq(value: any): (other: any) => boolean,
+ eq(value: any, other: any): boolean,
+ identical(value: any): (other: any) => boolean,
+ identical(value: any, other: any): boolean,
+ gt(value: any): (other: any) => boolean,
+ gt(value: any, other: any): boolean,
+ gte(value: any): (other: any) => boolean,
+ gte(value: any, other: any): boolean,
+ isArguments(value: any): boolean,
+ isArray(value: any): boolean,
+ isArrayBuffer(value: any): boolean,
+ isArrayLike(value: any): boolean,
+ isArrayLikeObject(value: any): boolean,
+ isBoolean(value: any): boolean,
+ isBuffer(value: any): boolean,
+ isDate(value: any): boolean,
+ isElement(value: any): boolean,
+ isEmpty(value: any): boolean,
+ isEqual(value: any): (other: any) => boolean,
+ isEqual(value: any, other: any): boolean,
+ equals(value: any): (other: any) => boolean,
+ equals(value: any, other: any): boolean,
+ isEqualWith<T, U>(customizer: (objValue: any, otherValue: any, key: number | string, object: T, other: U, stack: any) => boolean | void): ((value: T) => (other: U) => boolean) & ((value: T, other: U) => boolean),
+ isEqualWith<T, U>(customizer: (objValue: any, otherValue: any, key: number | string, object: T, other: U, stack: any) => boolean | void, value: T): (other: U) => boolean,
+ isEqualWith<T, U>(customizer: (objValue: any, otherValue: any, key: number | string, object: T, other: U, stack: any) => boolean | void, value: T, other: U): boolean,
+ isError(value: any): boolean,
+ isFinite(value: any): boolean,
+ isFunction(value: Function): true,
+ isFunction(value: number | string | void | null | Object): false,
+ isInteger(value: any): boolean,
+ isLength(value: any): boolean,
+ isMap(value: any): boolean,
+ isMatch(source: Object): (object: Object) => boolean,
+ isMatch(source: Object, object: Object): boolean,
+ whereEq(source: Object): (object: Object) => boolean,
+ whereEq(source: Object, object: Object): boolean,
+ isMatchWith<T: Object, U: Object>(customizer: (objValue: any, srcValue: any, key: number | string, object: T, source: U) => boolean | void): ((source: U) => (object: T) => boolean) & ((source: U, object: T) => boolean),
+ isMatchWith<T: Object, U: Object>(customizer: (objValue: any, srcValue: any, key: number | string, object: T, source: U) => boolean | void, source: U): (object: T) => boolean,
+ isMatchWith<T: Object, U: Object>(customizer: (objValue: any, srcValue: any, key: number | string, object: T, source: U) => boolean | void, source: U, object: T): boolean,
+ isNaN(value: any): boolean,
+ isNative(value: any): boolean,
+ isNil(value: any): boolean,
+ isNull(value: any): boolean,
+ isNumber(value: any): boolean,
+ isObject(value: any): boolean,
+ isObjectLike(value: any): boolean,
+ isPlainObject(value: any): boolean,
+ isRegExp(value: any): boolean,
+ isSafeInteger(value: any): boolean,
+ isSet(value: any): boolean,
+ isString(value: string): true,
+ isString(value: number | boolean | Function | void | null | Object | Array<any>): false,
+ isSymbol(value: any): boolean,
+ isTypedArray(value: any): boolean,
+ isUndefined(value: any): boolean,
+ isWeakMap(value: any): boolean,
+ isWeakSet(value: any): boolean,
+ lt(value: any): (other: any) => boolean,
+ lt(value: any, other: any): boolean,
+ lte(value: any): (other: any) => boolean,
+ lte(value: any, other: any): boolean,
+ toArray(value: any): Array<any>,
+ toFinite(value: any): number,
+ toInteger(value: any): number,
+ toLength(value: any): number,
+ toNumber(value: any): number,
+ toPlainObject(value: any): Object,
+ toSafeInteger(value: any): number,
+ toString(value: any): string,
+
+ // Math
+ add(augend: number): (addend: number) => number,
+ add(augend: number, addend: number): number,
+ ceil(number: number): number,
+ divide(dividend: number): (divisor: number) => number,
+ divide(dividend: number, divisor: number): number,
+ floor(number: number): number,
+ max<T>(array: Array<T>): T,
+ maxBy<T>(iteratee: Iteratee<T>): (array: Array<T>) => T,
+ maxBy<T>(iteratee: Iteratee<T>, array: Array<T>): T,
+ mean(array: Array<*>): number,
+ meanBy<T>(iteratee: Iteratee<T>): (array: Array<T>) => number,
+ meanBy<T>(iteratee: Iteratee<T>, array: Array<T>): number,
+ min<T>(array: Array<T>): T,
+ minBy<T>(iteratee: Iteratee<T>): (array: Array<T>) => T,
+ minBy<T>(iteratee: Iteratee<T>, array: Array<T>): T,
+ multiply(multiplier: number): (multiplicand: number) => number,
+ multiply(multiplier: number, multiplicand: number): number,
+ round(number: number): number,
+ subtract(minuend: number): (subtrahend: number) => number,
+ subtract(minuend: number, subtrahend: number): number,
+ sum(array: Array<*>): number,
+ sumBy<T>(iteratee: Iteratee<T>): (array: Array<T>) => number,
+ sumBy<T>(iteratee: Iteratee<T>, array: Array<T>): number,
+
+ // number
+ clamp(lower: number): ((upper: number) => (number: number) => number) & ((upper: number, number: number) => number),
+ clamp(lower: number, upper: number): (number: number) => number,
+ clamp(lower: number, upper: number, number: number): number,
+ inRange(start: number): ((end: number) => (number: number) => boolean) & ((end: number, number: number) => boolean),
+ inRange(start: number, end: number): (number: number) => boolean,
+ inRange(start: number, end: number, number: number): boolean,
+ random(lower: number): (upper: number) => number,
+ random(lower: number, upper: number): number,
+
+ // Object
+ assign(object: Object): (source: Object) => Object,
+ assign(object: Object, source: Object): Object,
+ assignAll(objects: Array<Object>): Object,
+ assignInAll(objects: Array<Object>): Object,
+ extendAll(objects: Array<Object>): Object,
+ assignIn<A, B>(a: A): (b: B) => A & B,
+ assignIn<A, B>(a: A, b: B): A & B,
+ assignInWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object),
+ assignInWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void, object: T): (s1: A) => Object,
+ assignInWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void, object: T, s1: A): Object,
+ assignWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object),
+ assignWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void, object: T): (s1: A) => Object,
+ assignWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void, object: T, s1: A): Object,
+ assignInAllWith(customizer: (objValue: any, srcValue: any, key: string, object: Object, source: Object) => any | void): (objects: Array<Object>) => Object,
+ assignInAllWith(customizer: (objValue: any, srcValue: any, key: string, object: Object, source: Object) => any | void, objects: Array<Object>): Object,
+ extendAllWith(customizer: (objValue: any, srcValue: any, key: string, object: Object, source: Object) => any | void): (objects: Array<Object>) => Object,
+ extendAllWith(customizer: (objValue: any, srcValue: any, key: string, object: Object, source: Object) => any | void, objects: Array<Object>): Object,
+ assignAllWith(customizer: (objValue: any, srcValue: any, key: string, object: Object, source: Object) => any | void): (objects: Array<Object>) => Object,
+ assignAllWith(customizer: (objValue: any, srcValue: any, key: string, object: Object, source: Object) => any | void, objects: Array<Object>): Object,
+ at(paths: Array<string>): (object: Object) => Array<any>,
+ at(paths: Array<string>, object: Object): Array<any>,
+ props(paths: Array<string>): (object: Object) => Array<any>,
+ props(paths: Array<string>, object: Object): Array<any>,
+ paths(paths: Array<string>): (object: Object) => Array<any>,
+ paths(paths: Array<string>, object: Object): Array<any>,
+ create<T>(prototype: T): $Supertype<T>,
+ defaults(source: Object): (object: Object) => Object,
+ defaults(source: Object, object: Object): Object,
+ defaultsAll(objects: Array<Object>): Object,
+ defaultsDeep(source: Object): (object: Object) => Object,
+ defaultsDeep(source: Object, object: Object): Object,
+ defaultsDeepAll(objects: Array<Object>): Object,
+ // alias for _.toPairs
+ entries(object: Object): NestedArray<any>,
+ // alias for _.toPairsIn
+ entriesIn(object: Object): NestedArray<any>,
+ // alias for _.assignIn
+ extend<A, B>(a: A): (b: B) => A & B,
+ extend<A, B>(a: A, b: B): A & B,
+ // alias for _.assignInWith
+ extendWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object),
+ extendWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void, object: T): (s1: A) => Object,
+ extendWith<T: Object, A: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A) => any | void, object: T, s1: A): Object,
+ findKey<A, T: { [id: any]: A }>(predicate: OPredicate<A>): (object: T) => string | void,
+ findKey<A, T: { [id: any]: A }>(predicate: OPredicate<A>, object: T): string | void,
+ findLastKey<A, T: { [id: any]: A }>(predicate: OPredicate<A>): (object: T) => string | void,
+ findLastKey<A, T: { [id: any]: A }>(predicate: OPredicate<A>, object: T): string | void,
+ forIn(iteratee: OIteratee<*>): (object: Object) => Object,
+ forIn(iteratee: OIteratee<*>, object: Object): Object,
+ forInRight(iteratee: OIteratee<*>): (object: Object) => Object,
+ forInRight(iteratee: OIteratee<*>, object: Object): Object,
+ forOwn(iteratee: OIteratee<*>): (object: Object) => Object,
+ forOwn(iteratee: OIteratee<*>, object: Object): Object,
+ forOwnRight(iteratee: OIteratee<*>): (object: Object) => Object,
+ forOwnRight(iteratee: OIteratee<*>, object: Object): Object,
+ functions(object: Object): Array<string>,
+ functionsIn(object: Object): Array<string>,
+ get(path: Array<string> | string): (object: Object | Array<any>) => any,
+ get(path: Array<string> | string, object: Object | Array<any>): any,
+ prop(path: Array<string> | string): (object: Object | Array<any>) => any,
+ prop(path: Array<string> | string, object: Object | Array<any>): any,
+ path(path: Array<string> | string): (object: Object | Array<any>) => any,
+ path(path: Array<string> | string, object: Object | Array<any>): any,
+ getOr(defaultValue: any): ((path: Array<string> | string) => (object: Object | Array<any>) => any) & ((path: Array<string> | string, object: Object | Array<any>) => any),
+ getOr(defaultValue: any, path: Array<string> | string): (object: Object | Array<any>) => any,
+ getOr(defaultValue: any, path: Array<string> | string, object: Object | Array<any>): any,
+ propOr(defaultValue: any): ((path: Array<string> | string) => (object: Object | Array<any>) => any) & ((path: Array<string> | string, object: Object | Array<any>) => any),
+ propOr(defaultValue: any, path: Array<string> | string): (object: Object | Array<any>) => any,
+ propOr(defaultValue: any, path: Array<string> | string, object: Object | Array<any>): any,
+ pathOr(defaultValue: any): ((path: Array<string> | string) => (object: Object | Array<any>) => any) & ((path: Array<string> | string, object: Object | Array<any>) => any),
+ pathOr(defaultValue: any, path: Array<string> | string): (object: Object | Array<any>) => any,
+ pathOr(defaultValue: any, path: Array<string> | string, object: Object | Array<any>): any,
+ has(path: Array<string> | string): (object: Object) => boolean,
+ has(path: Array<string> | string, object: Object): boolean,
+ hasIn(path: Array<string> | string): (object: Object) => boolean,
+ hasIn(path: Array<string> | string, object: Object): boolean,
+ invert(object: Object): Object,
+ invertObj(object: Object): Object,
+ invertBy(iteratee: Function): (object: Object) => Object,
+ invertBy(iteratee: Function, object: Object): Object,
+ invoke(path: Array<string> | string): (object: Object) => any,
+ invoke(path: Array<string> | string, object: Object): any,
+ invokeArgs(path: Array<string> | string): ((object: Object) => (args: Array<any>) => any) & ((object: Object, args: Array<any>) => any),
+ invokeArgs(path: Array<string> | string, object: Object): (args: Array<any>) => any,
+ invokeArgs(path: Array<string> | string, object: Object, args: Array<any>): any,
+ keys(object: Object): Array<string>,
+ keysIn(object: Object): Array<string>,
+ mapKeys(iteratee: OIteratee<*>): (object: Object) => Object,
+ mapKeys(iteratee: OIteratee<*>, object: Object): Object,
+ mapValues(iteratee: OIteratee<*>): (object: Object) => Object,
+ mapValues(iteratee: OIteratee<*>, object: Object): Object,
+ merge(object: Object): (source: Object) => Object,
+ merge(object: Object, source: Object): Object,
+ mergeAll(objects: Array<Object>): Object,
+ mergeWith<T: Object, A: Object, B: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A | B) => any | void): ((object: T) => (s1: A) => Object) & ((object: T, s1: A) => Object),
+ mergeWith<T: Object, A: Object, B: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A | B) => any | void, object: T): (s1: A) => Object,
+ mergeWith<T: Object, A: Object, B: Object>(customizer: (objValue: any, srcValue: any, key: string, object: T, source: A | B) => any | void, object: T, s1: A): Object,
+ mergeAllWith(customizer: (objValue: any, srcValue: any, key: string, object: Object, source: Object) => any | void): (objects: Array<Object>) => Object,
+ mergeAllWith(customizer: (objValue: any, srcValue: any, key: string, object: Object, source: Object) => any | void, objects: Array<Object>): Object,
+ omit(props: Array<string>): (object: Object) => Object,
+ omit(props: Array<string>, object: Object): Object,
+ omitAll(props: Array<string>): (object: Object) => Object,
+ omitAll(props: Array<string>, object: Object): Object,
+ omitBy<A, T: { [id: any]: A }>(predicate: OPredicate<A>): (object: T) => Object,
+ omitBy<A, T: { [id: any]: A }>(predicate: OPredicate<A>, object: T): Object,
+ pick(props: Array<string>): (object: Object) => Object,
+ pick(props: Array<string>, object: Object): Object,
+ pickAll(props: Array<string>): (object: Object) => Object,
+ pickAll(props: Array<string>, object: Object): Object,
+ pickBy<A, T: { [id: any]: A }>(predicate: OPredicate<A>): (object: T) => Object,
+ pickBy<A, T: { [id: any]: A }>(predicate: OPredicate<A>, object: T): Object,
+ result(path: Array<string> | string): (object: Object) => any,
+ result(path: Array<string> | string, object: Object): any,
+ set(path: Array<string> | string): ((value: any) => (object: Object) => Object) & ((value: any, object: Object) => Object),
+ set(path: Array<string> | string, value: any): (object: Object) => Object,
+ set(path: Array<string> | string, value: any, object: Object): Object,
+ assoc(path: Array<string> | string): ((value: any) => (object: Object) => Object) & ((value: any, object: Object) => Object),
+ assoc(path: Array<string> | string, value: any): (object: Object) => Object,
+ assoc(path: Array<string> | string, value: any, object: Object): Object,
+ assocPath(path: Array<string> | string): ((value: any) => (object: Object) => Object) & ((value: any, object: Object) => Object),
+ assocPath(path: Array<string> | string, value: any): (object: Object) => Object,
+ assocPath(path: Array<string> | string, value: any, object: Object): Object,
+ setWith<T>(customizer: (nsValue: any, key: string, nsObject: T) => any): ((path: Array<string> | string) => (((value: any) => (object: T) => Object) & ((value: any, object: T) => Object))) & ((path: Array<string> | string, value: any) => (object: T) => Object) & ((path: Array<string> | string, value: any, object: T) => Object),
+ setWith<T>(customizer: (nsValue: any, key: string, nsObject: T) => any, path: Array<string> | string): ((value: any) => (object: T) => Object) & ((value: any, object: T) => Object),
+ setWith<T>(customizer: (nsValue: any, key: string, nsObject: T) => any, path: Array<string> | string, value: any): (object: T) => Object,
+ setWith<T>(customizer: (nsValue: any, key: string, nsObject: T) => any, path: Array<string> | string, value: any, object: T): Object,
+ toPairs(object: Object | Array<*>): NestedArray<any>,
+ toPairsIn(object: Object): NestedArray<any>,
+ transform(iteratee: OIteratee<*>): ((accumulator: any) => (collection: Object | Array<any>) => any) & ((accumulator: any, collection: Object | Array<any>) => any),
+ transform(iteratee: OIteratee<*>, accumulator: any): (collection: Object | Array<any>) => any,
+ transform(iteratee: OIteratee<*>, accumulator: any, collection: Object | Array<any>): any,
+ unset(path: Array<string> | string): (object: Object) => boolean,
+ unset(path: Array<string> | string, object: Object): boolean,
+ dissoc(path: Array<string> | string): (object: Object) => boolean,
+ dissoc(path: Array<string> | string, object: Object): boolean,
+ dissocPath(path: Array<string> | string): (object: Object) => boolean,
+ dissocPath(path: Array<string> | string, object: Object): boolean,
+ update(path: string[] | string): ((updater: Function) => (object: Object) => Object) & ((updater: Function, object: Object) => Object),
+ update(path: string[] | string, updater: Function): (object: Object) => Object,
+ update(path: string[] | string, updater: Function, object: Object): Object,
+ updateWith(customizer: Function): ((path: string[] | string) => (((updater: Function) => (object: Object) => Object) & ((updater: Function, object: Object) => Object))) & ((path: string[] | string, updater: Function) => (object: Object) => Object) & ((path: string[] | string, updater: Function, object: Object) => Object),
+ updateWith(customizer: Function, path: string[] | string): ((updater: Function) => (object: Object) => Object) & ((updater: Function, object: Object) => Object),
+ updateWith(customizer: Function, path: string[] | string, updater: Function): (object: Object) => Object,
+ updateWith(customizer: Function, path: string[] | string, updater: Function, object: Object): Object,
+ values(object: Object): Array<any>,
+ valuesIn(object: Object): Array<any>,
+
+ tap<T>(interceptor: (value: T) => any): (value: T) => T,
+ tap<T>(interceptor: (value: T) => any, value: T): T,
+ thru<T1, T2>(interceptor: (value: T1) => T2): (value: T1) => T2,
+ thru<T1, T2>(interceptor: (value: T1) => T2, value: T1): T2,
+
+ // String
+ camelCase(string: string): string,
+ capitalize(string: string): string,
+ deburr(string: string): string,
+ endsWith(target: string): (string: string) => boolean,
+ endsWith(target: string, string: string): boolean,
+ escape(string: string): string,
+ escapeRegExp(string: string): string,
+ kebabCase(string: string): string,
+ lowerCase(string: string): string,
+ lowerFirst(string: string): string,
+ pad(length: number): (string: string) => string,
+ pad(length: number, string: string): string,
+ padChars(chars: string): ((length: number) => (string: string) => string) & ((length: number, string: string) => string),
+ padChars(chars: string, length: number): (string: string) => string,
+ padChars(chars: string, length: number, string: string): string,
+ padEnd(length: number): (string: string) => string,
+ padEnd(length: number, string: string): string,
+ padCharsEnd(chars: string): ((length: number) => (string: string) => string) & ((length: number, string: string) => string),
+ padCharsEnd(chars: string, length: number): (string: string) => string,
+ padCharsEnd(chars: string, length: number, string: string): string,
+ padStart(length: number): (string: string) => string,
+ padStart(length: number, string: string): string,
+ padCharsStart(chars: string): ((length: number) => (string: string) => string) & ((length: number, string: string) => string),
+ padCharsStart(chars: string, length: number): (string: string) => string,
+ padCharsStart(chars: string, length: number, string: string): string,
+ parseInt(radix: number): (string: string) => number,
+ parseInt(radix: number, string: string): number,
+ repeat(n: number): (string: string) => string,
+ repeat(n: number, string: string): string,
+ replace(pattern: RegExp | string): ((replacement: ((string: string) => string) | string) => (string: string) => string) & ((replacement: ((string: string) => string) | string, string: string) => string),
+ replace(pattern: RegExp | string, replacement: ((string: string) => string) | string): (string: string) => string,
+ replace(pattern: RegExp | string, replacement: ((string: string) => string) | string, string: string): string,
+ snakeCase(string: string): string,
+ split(separator: RegExp | string): (string: string) => Array<string>,
+ split(separator: RegExp | string, string: string): Array<string>,
+ startCase(string: string): string,
+ startsWith(target: string): (string: string) => boolean,
+ startsWith(target: string, string: string): boolean,
+ template(string: string): Function,
+ toLower(string: string): string,
+ toUpper(string: string): string,
+ trim(string: string): string,
+ trimChars(chars: string): (string: string) => string,
+ trimChars(chars: string, string: string): string,
+ trimEnd(string: string): string,
+ trimCharsEnd(chars: string): (string: string) => string,
+ trimCharsEnd(chars: string, string: string): string,
+ trimStart(string: string): string,
+ trimCharsStart(chars: string): (string: string) => string,
+ trimCharsStart(chars: string, string: string): string,
+ truncate(options: TruncateOptions): (string: string) => string,
+ truncate(options: TruncateOptions, string: string): string,
+ unescape(string: string): string,
+ upperCase(string: string): string,
+ upperFirst(string: string): string,
+ words(string: string): Array<string>,
// Util
- attempt(func: Function): any;
- bindAll(object?: ?Object, methodNames: Array<string>): Object;
- bindAll(object?: ?Object, ...methodNames: Array<string>): Object;
- cond(pairs: NestedArray<Function>): Function;
- conforms(source: Object): Function;
- constant<T>(value: T): () => T;
- defaultTo<T1:string|boolean|Object,T2>(value: T1, defaultValue: T2): T1;
+ attempt(func: Function): any,
+ bindAll(methodNames: Array<string>): (object: Object) => Object,
+ bindAll(methodNames: Array<string>, object: Object): Object,
+ cond(pairs: NestedArray<Function>): Function,
+ constant<T>(value: T): () => T,
+ always<T>(value: T): () => T,
+ defaultTo<T1: string | boolean | Object, T2>(defaultValue: T2): (value: T1) => T1,
+ defaultTo<T1: string | boolean | Object, T2>(defaultValue: T2, value: T1): T1,
// NaN is a number instead of its own type, otherwise it would behave like null/void
- defaultTo<T1:number,T2>(value: T1, defaultValue: T2): T1|T2;
- defaultTo<T1:void|null,T2>(value: T1, defaultValue: T2): T2;
- flow(...funcs?: Array<Function>): Function;
- flow(funcs?: Array<Function>): Function;
- flowRight(...funcs?: Array<Function>): Function;
- flowRight(funcs?: Array<Function>): Function;
- identity<T>(value: T): T;
- iteratee(func?: any): Function;
- matches(source: Object): Function;
- matchesProperty(path?: ?Array<string>|string, srcValue: any): Function;
- method(path?: ?Array<string>|string, ...args?: Array<any>): Function;
- methodOf(object?: ?Object, ...args?: Array<any>): Function;
- mixin<T: Function|Object>(object?: T, source: Object, options?: { chain: bool }): T;
- noConflict(): Lodash;
- noop(...args: Array<mixed>): void;
- nthArg(n?: number): Function;
- over(...iteratees: Array<Function>): Function;
- over(iteratees: Array<Function>): Function;
- overEvery(...predicates: Array<Function>): Function;
- overEvery(predicates: Array<Function>): Function;
- overSome(...predicates: Array<Function>): Function;
- overSome(predicates: Array<Function>): Function;
- property(path?: ?Array<string>|string): Function;
- propertyOf(object?: ?Object): Function;
- range(start: number, end: number, step?: number): Array<number>;
- range(end: number, step?: number): Array<number>;
- rangeRight(start: number, end: number, step?: number): Array<number>;
- rangeRight(end: number, step?: number): Array<number>;
- runInContext(context?: Object): Function;
-
- stubArray(): Array<*>;
- stubFalse(): false;
- stubObject(): {};
- stubString(): '';
- stubTrue(): true;
- times(n: number, ...rest: Array<void>): Array<number>;
- times<T>(n: number, iteratee: ((i: number) => T)): Array<T>;
- toPath(value: any): Array<string>;
- uniqueId(prefix?: string): string;
+ defaultTo<T1: number, T2>(defaultValue: T2): (value: T1) => T1 | T2,
+ defaultTo<T1: number, T2>(defaultValue: T2, value: T1): T1 | T2,
+ defaultTo<T1: void | null, T2>(defaultValue: T2): (value: T1) => T2,
+ defaultTo<T1: void | null, T2>(defaultValue: T2, value: T1): T2,
+ flow: Flow,
+ flow(funcs: Array<Function>): Function,
+ pipe: Flow,
+ pipe(funcs: Array<Function>): Function,
+ flowRight: FlowRight,
+ flowRight(funcs: Array<Function>): Function,
+ compose: FlowRight,
+ compose(funcs: Array<Function>): Function,
+ identity<T>(value: T): T,
+ iteratee(func: any): Function,
+ matches(source: Object): (object: Object) => boolean,
+ matches(source: Object, object: Object): boolean,
+ matchesProperty(path: Array<string> | string): (srcValue: any) => Function,
+ matchesProperty(path: Array<string> | string, srcValue: any): Function,
+ propEq(path: Array<string> | string): (srcValue: any) => Function,
+ propEq(path: Array<string> | string, srcValue: any): Function,
+ pathEq(path: Array<string> | string): (srcValue: any) => Function,
+ pathEq(path: Array<string> | string, srcValue: any): Function,
+ method(path: Array<string> | string): Function,
+ methodOf(object: Object): Function,
+ mixin<T: Function | Object>(object: T): ((source: Object) => (options: {chain: boolean}) => T) & ((source: Object, options: {chain: boolean}) => T),
+ mixin<T: Function | Object>(object: T, source: Object): (options: {chain: boolean}) => T,
+ mixin<T: Function | Object>(object: T, source: Object, options: {chain: boolean}): T,
+ noConflict(): Lodash,
+ noop(...args: Array<mixed>): void,
+ nthArg(n: number): Function,
+ over(iteratees: Array<Function>): Function,
+ juxt(iteratees: Array<Function>): Function,
+ overEvery(predicates: Array<Function>): Function,
+ allPass(predicates: Array<Function>): Function,
+ overSome(predicates: Array<Function>): Function,
+ anyPass(predicates: Array<Function>): Function,
+ property(path: Array<string> | string): (object: Object | Array<any>) => any,
+ property(path: Array<string> | string, object: Object | Array<any>): any,
+ propertyOf(object: Object): (path: Array<string> | string) => Function,
+ propertyOf(object: Object, path: Array<string> | string): Function,
+ range(start: number): (end: number) => Array<number>,
+ range(start: number, end: number): Array<number>,
+ rangeStep(step: number): ((start: number) => (end: number) => Array<number>) & ((start: number, end: number) => Array<number>),
+ rangeStep(step: number, start: number): (end: number) => Array<number>,
+ rangeStep(step: number, start: number, end: number): Array<number>,
+ rangeRight(start: number): (end: number) => Array<number>,
+ rangeRight(start: number, end: number): Array<number>,
+ rangeStepRight(step: number): ((start: number) => (end: number) => Array<number>) & ((start: number, end: number) => Array<number>),
+ rangeStepRight(step: number, start: number): (end: number) => Array<number>,
+ rangeStepRight(step: number, start: number, end: number): Array<number>,
+ runInContext(context: Object): Function,
+
+ stubArray(): Array<*>,
+ stubFalse(): false,
+ F(): false,
+ stubObject(): {},
+ stubString(): "",
+ stubTrue(): true,
+ T(): true,
+ times<T>(iteratee: (i: number) => T): (n: number) => Array<T>,
+ times<T>(iteratee: (i: number) => T, n: number): Array<T>,
+ toPath(value: any): Array<string>,
+ uniqueId(prefix: string): string,
+
+ __: any,
+ placeholder: any,
+
+ convert(options: {
+ cap?: boolean,
+ curry?: boolean,
+ fixed?: boolean,
+ immutable?: boolean,
+ rearg?: boolean
+ }): void,
// Properties
- VERSION: string;
- templateSettings: TemplateSettings;
+ VERSION: string,
+ templateSettings: TemplateSettings
}
declare var exports: Lodash;
}
+
+declare module 'lodash/chunk' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'chunk'>;
+}
+
+declare module 'lodash/compact' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'compact'>;
+}
+
+declare module 'lodash/concat' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'concat'>;
+}
+
+declare module 'lodash/difference' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'difference'>;
+}
+
+declare module 'lodash/differenceBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'differenceBy'>;
+}
+
+declare module 'lodash/differenceWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'differenceWith'>;
+}
+
+declare module 'lodash/drop' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'drop'>;
+}
+
+declare module 'lodash/dropRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'dropRight'>;
+}
+
+declare module 'lodash/dropRightWhile' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'dropRightWhile'>;
+}
+
+declare module 'lodash/dropWhile' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'dropWhile'>;
+}
+
+declare module 'lodash/fill' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'fill'>;
+}
+
+declare module 'lodash/findIndex' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'findIndex'>;
+}
+
+declare module 'lodash/findLastIndex' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'findLastIndex'>;
+}
+
+declare module 'lodash/first' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'first'>;
+}
+
+declare module 'lodash/flatten' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flatten'>;
+}
+
+declare module 'lodash/flattenDeep' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flattenDeep'>;
+}
+
+declare module 'lodash/flattenDepth' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flattenDepth'>;
+}
+
+declare module 'lodash/fromPairs' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'fromPairs'>;
+}
+
+declare module 'lodash/head' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'head'>;
+}
+
+declare module 'lodash/indexOf' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'indexOf'>;
+}
+
+declare module 'lodash/initial' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'initial'>;
+}
+
+declare module 'lodash/intersection' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'intersection'>;
+}
+
+declare module 'lodash/intersectionBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'intersectionBy'>;
+}
+
+declare module 'lodash/intersectionWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'intersectionWith'>;
+}
+
+declare module 'lodash/join' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'join'>;
+}
+
+declare module 'lodash/last' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'last'>;
+}
+
+declare module 'lodash/lastIndexOf' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'lastIndexOf'>;
+}
+
+declare module 'lodash/nth' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'nth'>;
+}
+
+declare module 'lodash/pull' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'pull'>;
+}
+
+declare module 'lodash/pullAll' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'pullAll'>;
+}
+
+declare module 'lodash/pullAllBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'pullAllBy'>;
+}
+
+declare module 'lodash/pullAllWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'pullAllWith'>;
+}
+
+declare module 'lodash/pullAt' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'pullAt'>;
+}
+
+declare module 'lodash/remove' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'remove'>;
+}
+
+declare module 'lodash/reverse' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'reverse'>;
+}
+
+declare module 'lodash/slice' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'slice'>;
+}
+
+declare module 'lodash/sortedIndex' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortedIndex'>;
+}
+
+declare module 'lodash/sortedIndexBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortedIndexBy'>;
+}
+
+declare module 'lodash/sortedIndexOf' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortedIndexOf'>;
+}
+
+declare module 'lodash/sortedLastIndex' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortedLastIndex'>;
+}
+
+declare module 'lodash/sortedLastIndexBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortedLastIndexBy'>;
+}
+
+declare module 'lodash/sortedLastIndexOf' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortedLastIndexOf'>;
+}
+
+declare module 'lodash/sortedUniq' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortedUniq'>;
+}
+
+declare module 'lodash/sortedUniqBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortedUniqBy'>;
+}
+
+declare module 'lodash/tail' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'tail'>;
+}
+
+declare module 'lodash/take' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'take'>;
+}
+
+declare module 'lodash/takeRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'takeRight'>;
+}
+
+declare module 'lodash/takeRightWhile' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'takeRightWhile'>;
+}
+
+declare module 'lodash/takeWhile' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'takeWhile'>;
+}
+
+declare module 'lodash/union' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'union'>;
+}
+
+declare module 'lodash/unionBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'unionBy'>;
+}
+
+declare module 'lodash/unionWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'unionWith'>;
+}
+
+declare module 'lodash/uniq' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'uniq'>;
+}
+
+declare module 'lodash/uniqBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'uniqBy'>;
+}
+
+declare module 'lodash/uniqWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'uniqWith'>;
+}
+
+declare module 'lodash/unzip' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'unzip'>;
+}
+
+declare module 'lodash/unzipWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'unzipWith'>;
+}
+
+declare module 'lodash/without' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'without'>;
+}
+
+declare module 'lodash/xor' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'xor'>;
+}
+
+declare module 'lodash/xorBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'xorBy'>;
+}
+
+declare module 'lodash/xorWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'xorWith'>;
+}
+
+declare module 'lodash/zip' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'zip'>;
+}
+
+declare module 'lodash/zipObject' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'zipObject'>;
+}
+
+declare module 'lodash/zipObjectDeep' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'zipObjectDeep'>;
+}
+
+declare module 'lodash/zipWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'zipWith'>;
+}
+
+declare module 'lodash/countBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'countBy'>;
+}
+
+declare module 'lodash/each' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'each'>;
+}
+
+declare module 'lodash/eachRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'eachRight'>;
+}
+
+declare module 'lodash/every' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'every'>;
+}
+
+declare module 'lodash/filter' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'filter'>;
+}
+
+declare module 'lodash/find' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'find'>;
+}
+
+declare module 'lodash/findLast' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'findLast'>;
+}
+
+declare module 'lodash/flatMap' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flatMap'>;
+}
+
+declare module 'lodash/flatMapDeep' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flatMapDeep'>;
+}
+
+declare module 'lodash/flatMapDepth' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flatMapDepth'>;
+}
+
+declare module 'lodash/forEach' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'forEach'>;
+}
+
+declare module 'lodash/forEachRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'forEachRight'>;
+}
+
+declare module 'lodash/groupBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'groupBy'>;
+}
+
+declare module 'lodash/includes' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'includes'>;
+}
+
+declare module 'lodash/invokeMap' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'invokeMap'>;
+}
+
+declare module 'lodash/keyBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'keyBy'>;
+}
+
+declare module 'lodash/map' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'map'>;
+}
+
+declare module 'lodash/orderBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'orderBy'>;
+}
+
+declare module 'lodash/partition' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'partition'>;
+}
+
+declare module 'lodash/reduce' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'reduce'>;
+}
+
+declare module 'lodash/reduceRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'reduceRight'>;
+}
+
+declare module 'lodash/reject' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'reject'>;
+}
+
+declare module 'lodash/sample' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sample'>;
+}
+
+declare module 'lodash/sampleSize' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sampleSize'>;
+}
+
+declare module 'lodash/shuffle' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'shuffle'>;
+}
+
+declare module 'lodash/size' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'size'>;
+}
+
+declare module 'lodash/some' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'some'>;
+}
+
+declare module 'lodash/sortBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sortBy'>;
+}
+
+declare module 'lodash/now' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'now'>;
+}
+
+declare module 'lodash/after' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'after'>;
+}
+
+declare module 'lodash/ary' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'ary'>;
+}
+
+declare module 'lodash/before' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'before'>;
+}
+
+declare module 'lodash/bind' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'bind'>;
+}
+
+declare module 'lodash/bindKey' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'bindKey'>;
+}
+
+declare module 'lodash/curry' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'curry'>;
+}
+
+declare module 'lodash/curryRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'curryRight'>;
+}
+
+declare module 'lodash/debounce' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'debounce'>;
+}
+
+declare module 'lodash/defer' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'defer'>;
+}
+
+declare module 'lodash/delay' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'delay'>;
+}
+
+declare module 'lodash/flip' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flip'>;
+}
+
+declare module 'lodash/memoize' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'memoize'>;
+}
+
+declare module 'lodash/negate' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'negate'>;
+}
+
+declare module 'lodash/once' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'once'>;
+}
+
+declare module 'lodash/overArgs' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'overArgs'>;
+}
+
+declare module 'lodash/partial' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'partial'>;
+}
+
+declare module 'lodash/partialRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'partialRight'>;
+}
+
+declare module 'lodash/rearg' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'rearg'>;
+}
+
+declare module 'lodash/rest' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'rest'>;
+}
+
+declare module 'lodash/spread' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'spread'>;
+}
+
+declare module 'lodash/throttle' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'throttle'>;
+}
+
+declare module 'lodash/unary' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'unary'>;
+}
+
+declare module 'lodash/wrap' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'wrap'>;
+}
+
+declare module 'lodash/castArray' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'castArray'>;
+}
+
+declare module 'lodash/clone' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'clone'>;
+}
+
+declare module 'lodash/cloneDeep' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'cloneDeep'>;
+}
+
+declare module 'lodash/cloneDeepWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'cloneDeepWith'>;
+}
+
+declare module 'lodash/cloneWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'cloneWith'>;
+}
+
+declare module 'lodash/conformsTo' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'conformsTo'>;
+}
+
+declare module 'lodash/eq' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'eq'>;
+}
+
+declare module 'lodash/gt' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'gt'>;
+}
+
+declare module 'lodash/gte' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'gte'>;
+}
+
+declare module 'lodash/isArguments' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isArguments'>;
+}
+
+declare module 'lodash/isArray' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isArray'>;
+}
+
+declare module 'lodash/isArrayBuffer' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isArrayBuffer'>;
+}
+
+declare module 'lodash/isArrayLike' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isArrayLike'>;
+}
+
+declare module 'lodash/isArrayLikeObject' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isArrayLikeObject'>;
+}
+
+declare module 'lodash/isBoolean' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isBoolean'>;
+}
+
+declare module 'lodash/isBuffer' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isBuffer'>;
+}
+
+declare module 'lodash/isDate' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isDate'>;
+}
+
+declare module 'lodash/isElement' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isElement'>;
+}
+
+declare module 'lodash/isEmpty' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isEmpty'>;
+}
+
+declare module 'lodash/isEqual' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isEqual'>;
+}
+
+declare module 'lodash/isEqualWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isEqualWith'>;
+}
+
+declare module 'lodash/isError' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isError'>;
+}
+
+declare module 'lodash/isFinite' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isFinite'>;
+}
+
+declare module 'lodash/isFunction' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isFunction'>;
+}
+
+declare module 'lodash/isInteger' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isInteger'>;
+}
+
+declare module 'lodash/isLength' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isLength'>;
+}
+
+declare module 'lodash/isMap' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isMap'>;
+}
+
+declare module 'lodash/isMatch' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isMatch'>;
+}
+
+declare module 'lodash/isMatchWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isMatchWith'>;
+}
+
+declare module 'lodash/isNaN' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isNaN'>;
+}
+
+declare module 'lodash/isNative' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isNative'>;
+}
+
+declare module 'lodash/isNil' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isNil'>;
+}
+
+declare module 'lodash/isNull' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isNull'>;
+}
+
+declare module 'lodash/isNumber' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isNumber'>;
+}
+
+declare module 'lodash/isObject' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isObject'>;
+}
+
+declare module 'lodash/isObjectLike' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isObjectLike'>;
+}
+
+declare module 'lodash/isPlainObject' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isPlainObject'>;
+}
+
+declare module 'lodash/isRegExp' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isRegExp'>;
+}
+
+declare module 'lodash/isSafeInteger' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isSafeInteger'>;
+}
+
+declare module 'lodash/isSet' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isSet'>;
+}
+
+declare module 'lodash/isString' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isString'>;
+}
+
+declare module 'lodash/isSymbol' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isSymbol'>;
+}
+
+declare module 'lodash/isTypedArray' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isTypedArray'>;
+}
+
+declare module 'lodash/isUndefined' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isUndefined'>;
+}
+
+declare module 'lodash/isWeakMap' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isWeakMap'>;
+}
+
+declare module 'lodash/isWeakSet' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'isWeakSet'>;
+}
+
+declare module 'lodash/lt' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'lt'>;
+}
+
+declare module 'lodash/lte' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'lte'>;
+}
+
+declare module 'lodash/toArray' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toArray'>;
+}
+
+declare module 'lodash/toFinite' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toFinite'>;
+}
+
+declare module 'lodash/toInteger' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toInteger'>;
+}
+
+declare module 'lodash/toLength' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toLength'>;
+}
+
+declare module 'lodash/toNumber' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toNumber'>;
+}
+
+declare module 'lodash/toPlainObject' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toPlainObject'>;
+}
+
+declare module 'lodash/toSafeInteger' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toSafeInteger'>;
+}
+
+declare module 'lodash/toString' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toString'>;
+}
+
+declare module 'lodash/add' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'add'>;
+}
+
+declare module 'lodash/ceil' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'ceil'>;
+}
+
+declare module 'lodash/divide' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'divide'>;
+}
+
+declare module 'lodash/floor' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'floor'>;
+}
+
+declare module 'lodash/max' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'max'>;
+}
+
+declare module 'lodash/maxBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'maxBy'>;
+}
+
+declare module 'lodash/mean' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'mean'>;
+}
+
+declare module 'lodash/meanBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'meanBy'>;
+}
+
+declare module 'lodash/min' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'min'>;
+}
+
+declare module 'lodash/minBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'minBy'>;
+}
+
+declare module 'lodash/multiply' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'multiply'>;
+}
+
+declare module 'lodash/round' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'round'>;
+}
+
+declare module 'lodash/subtract' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'subtract'>;
+}
+
+declare module 'lodash/sum' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sum'>;
+}
+
+declare module 'lodash/sumBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'sumBy'>;
+}
+
+declare module 'lodash/clamp' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'clamp'>;
+}
+
+declare module 'lodash/inRange' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'inRange'>;
+}
+
+declare module 'lodash/random' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'random'>;
+}
+
+declare module 'lodash/assign' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'assign'>;
+}
+
+declare module 'lodash/assignIn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'assignIn'>;
+}
+
+declare module 'lodash/assignInWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'assignInWith'>;
+}
+
+declare module 'lodash/assignWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'assignWith'>;
+}
+
+declare module 'lodash/at' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'at'>;
+}
+
+declare module 'lodash/create' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'create'>;
+}
+
+declare module 'lodash/defaults' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'defaults'>;
+}
+
+declare module 'lodash/defaultsDeep' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'defaultsDeep'>;
+}
+
+declare module 'lodash/entries' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'entries'>;
+}
+
+declare module 'lodash/entriesIn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'entriesIn'>;
+}
+
+declare module 'lodash/extend' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'extend'>;
+}
+
+declare module 'lodash/extendWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'extendWith'>;
+}
+
+declare module 'lodash/findKey' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'findKey'>;
+}
+
+declare module 'lodash/findLastKey' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'findLastKey'>;
+}
+
+declare module 'lodash/forIn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'forIn'>;
+}
+
+declare module 'lodash/forInRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'forInRight'>;
+}
+
+declare module 'lodash/forOwn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'forOwn'>;
+}
+
+declare module 'lodash/forOwnRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'forOwnRight'>;
+}
+
+declare module 'lodash/functions' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'functions'>;
+}
+
+declare module 'lodash/functionsIn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'functionsIn'>;
+}
+
+declare module 'lodash/get' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'get'>;
+}
+
+declare module 'lodash/has' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'has'>;
+}
+
+declare module 'lodash/hasIn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'hasIn'>;
+}
+
+declare module 'lodash/invert' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'invert'>;
+}
+
+declare module 'lodash/invertBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'invertBy'>;
+}
+
+declare module 'lodash/invoke' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'invoke'>;
+}
+
+declare module 'lodash/keys' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'keys'>;
+}
+
+declare module 'lodash/keysIn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'keysIn'>;
+}
+
+declare module 'lodash/mapKeys' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'mapKeys'>;
+}
+
+declare module 'lodash/mapValues' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'mapValues'>;
+}
+
+declare module 'lodash/merge' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'merge'>;
+}
+
+declare module 'lodash/mergeWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'mergeWith'>;
+}
+
+declare module 'lodash/omit' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'omit'>;
+}
+
+declare module 'lodash/omitBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'omitBy'>;
+}
+
+declare module 'lodash/pick' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'pick'>;
+}
+
+declare module 'lodash/pickBy' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'pickBy'>;
+}
+
+declare module 'lodash/result' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'result'>;
+}
+
+declare module 'lodash/set' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'set'>;
+}
+
+declare module 'lodash/setWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'setWith'>;
+}
+
+declare module 'lodash/toPairs' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toPairs'>;
+}
+
+declare module 'lodash/toPairsIn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toPairsIn'>;
+}
+
+declare module 'lodash/transform' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'transform'>;
+}
+
+declare module 'lodash/unset' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'unset'>;
+}
+
+declare module 'lodash/update' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'update'>;
+}
+
+declare module 'lodash/updateWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'updateWith'>;
+}
+
+declare module 'lodash/values' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'values'>;
+}
+
+declare module 'lodash/valuesIn' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'valuesIn'>;
+}
+
+declare module 'lodash/chain' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'chain'>;
+}
+
+declare module 'lodash/tap' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'tap'>;
+}
+
+declare module 'lodash/thru' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'thru'>;
+}
+
+declare module 'lodash/camelCase' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'camelCase'>;
+}
+
+declare module 'lodash/capitalize' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'capitalize'>;
+}
+
+declare module 'lodash/deburr' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'deburr'>;
+}
+
+declare module 'lodash/endsWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'endsWith'>;
+}
+
+declare module 'lodash/escape' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'escape'>;
+}
+
+declare module 'lodash/escapeRegExp' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'escapeRegExp'>;
+}
+
+declare module 'lodash/kebabCase' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'kebabCase'>;
+}
+
+declare module 'lodash/lowerCase' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'lowerCase'>;
+}
+
+declare module 'lodash/lowerFirst' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'lowerFirst'>;
+}
+
+declare module 'lodash/pad' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'pad'>;
+}
+
+declare module 'lodash/padEnd' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'padEnd'>;
+}
+
+declare module 'lodash/padStart' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'padStart'>;
+}
+
+declare module 'lodash/parseInt' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'parseInt'>;
+}
+
+declare module 'lodash/repeat' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'repeat'>;
+}
+
+declare module 'lodash/replace' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'replace'>;
+}
+
+declare module 'lodash/snakeCase' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'snakeCase'>;
+}
+
+declare module 'lodash/split' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'split'>;
+}
+
+declare module 'lodash/startCase' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'startCase'>;
+}
+
+declare module 'lodash/startsWith' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'startsWith'>;
+}
+
+declare module 'lodash/template' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'template'>;
+}
+
+declare module 'lodash/toLower' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toLower'>;
+}
+
+declare module 'lodash/toUpper' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toUpper'>;
+}
+
+declare module 'lodash/trim' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'trim'>;
+}
+
+declare module 'lodash/trimEnd' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'trimEnd'>;
+}
+
+declare module 'lodash/trimStart' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'trimStart'>;
+}
+
+declare module 'lodash/truncate' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'truncate'>;
+}
+
+declare module 'lodash/unescape' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'unescape'>;
+}
+
+declare module 'lodash/upperCase' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'upperCase'>;
+}
+
+declare module 'lodash/upperFirst' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'upperFirst'>;
+}
+
+declare module 'lodash/words' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'words'>;
+}
+
+declare module 'lodash/attempt' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'attempt'>;
+}
+
+declare module 'lodash/bindAll' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'bindAll'>;
+}
+
+declare module 'lodash/cond' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'cond'>;
+}
+
+declare module 'lodash/conforms' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'conforms'>;
+}
+
+declare module 'lodash/constant' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'constant'>;
+}
+
+declare module 'lodash/defaultTo' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'defaultTo'>;
+}
+
+declare module 'lodash/flow' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flow'>;
+}
+
+declare module 'lodash/flowRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'flowRight'>;
+}
+
+declare module 'lodash/identity' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'identity'>;
+}
+
+declare module 'lodash/iteratee' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'iteratee'>;
+}
+
+declare module 'lodash/matches' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'matches'>;
+}
+
+declare module 'lodash/matchesProperty' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'matchesProperty'>;
+}
+
+declare module 'lodash/method' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'method'>;
+}
+
+declare module 'lodash/methodOf' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'methodOf'>;
+}
+
+declare module 'lodash/mixin' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'mixin'>;
+}
+
+declare module 'lodash/noConflict' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'noConflict'>;
+}
+
+declare module 'lodash/noop' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'noop'>;
+}
+
+declare module 'lodash/nthArg' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'nthArg'>;
+}
+
+declare module 'lodash/over' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'over'>;
+}
+
+declare module 'lodash/overEvery' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'overEvery'>;
+}
+
+declare module 'lodash/overSome' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'overSome'>;
+}
+
+declare module 'lodash/property' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'property'>;
+}
+
+declare module 'lodash/propertyOf' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'propertyOf'>;
+}
+
+declare module 'lodash/range' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'range'>;
+}
+
+declare module 'lodash/rangeRight' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'rangeRight'>;
+}
+
+declare module 'lodash/runInContext' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'runInContext'>;
+}
+
+declare module 'lodash/stubArray' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'stubArray'>;
+}
+
+declare module 'lodash/stubFalse' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'stubFalse'>;
+}
+
+declare module 'lodash/stubObject' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'stubObject'>;
+}
+
+declare module 'lodash/stubString' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'stubString'>;
+}
+
+declare module 'lodash/stubTrue' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'stubTrue'>;
+}
+
+declare module 'lodash/times' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'times'>;
+}
+
+declare module 'lodash/toPath' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'toPath'>;
+}
+
+declare module 'lodash/uniqueId' {
+ declare module.exports: $PropertyType<$Exports<'lodash'>, 'uniqueId'>;
+}
\ No newline at end of file
diff --git a/flow-typed/npm/prop-types_v15.x.x.js b/flow-typed/npm/prop-types_v15.x.x.js
new file mode 100644
index 0000000000..113b0b5c4f
--- /dev/null
+++ b/flow-typed/npm/prop-types_v15.x.x.js
@@ -0,0 +1,34 @@
+// flow-typed signature: 3eaa1f24c7397b78a7481992d2cddcb2
+// flow-typed version: a1a20d4928/prop-types_v15.x.x/flow_>=v0.41.x
+
+type $npm$propTypes$ReactPropsCheckType = (
+ props: any,
+ propName: string,
+ componentName: string,
+ href?: string) => ?Error;
+
+declare module 'prop-types' {
+ declare var array: React$PropType$Primitive<Array<any>>;
+ declare var bool: React$PropType$Primitive<boolean>;
+ declare var func: React$PropType$Primitive<Function>;
+ declare var number: React$PropType$Primitive<number>;
+ declare var object: React$PropType$Primitive<Object>;
+ declare var string: React$PropType$Primitive<string>;
+ declare var any: React$PropType$Primitive<any>;
+ declare var arrayOf: React$PropType$ArrayOf;
+ declare var element: React$PropType$Primitive<any>; /* TODO */
+ declare var instanceOf: React$PropType$InstanceOf;
+ declare var node: React$PropType$Primitive<any>; /* TODO */
+ declare var objectOf: React$PropType$ObjectOf;
+ declare var oneOf: React$PropType$OneOf;
+ declare var oneOfType: React$PropType$OneOfType;
+ declare var shape: React$PropType$Shape;
+
+ declare function checkPropTypes<V>(
+ propTypes: $Subtype<{[_: $Keys<V>]: $npm$propTypes$ReactPropsCheckType}>,
+ values: V,
+ location: string,
+ componentName: string,
+ getStack: ?(() => ?string)
+ ) : void;
+}
diff --git a/flow-typed/npm/react-redux_v5.x.x.js b/flow-typed/npm/react-redux_v5.x.x.js
index 3536e46aeb..2fa2be335a 100644
--- a/flow-typed/npm/react-redux_v5.x.x.js
+++ b/flow-typed/npm/react-redux_v5.x.x.js
@@ -1,5 +1,8 @@
-// flow-typed signature: c0e8d9867aff7576bb7cf63fe60a6af3
-// flow-typed version: 83053e4020/react-redux_v5.x.x/flow_>=v0.30.x <=v0.52.x
+// flow-typed signature: 4e93c65cedbfbf7f1ab3fe4e800943d3
+// flow-typed version: 9092387fd2/react-redux_v5.x.x/flow_>=v0.53.x <=v0.53.x
+
+// flow-typed signature: 8db7b853f57c51094bf0ab8b2650fd9c
+// flow-typed version: ab8db5f14d/react-redux_v5.x.x/flow_>=v0.30.x
import type { Dispatch, Store } from "redux";
@@ -31,41 +34,30 @@ declare module "react-redux" {
declare type Context = { store: Store<*, *> };
- declare type StatelessComponent<P> = (
- props: P,
- context: Context
- ) => ?React$Element<any>;
-
- declare class ConnectedComponent<OP, P, Def, St> extends React$Component<
- void,
- OP,
- void
- > {
- static WrappedComponent: Class<React$Component<Def, P, St>>,
- getWrappedInstance(): React$Component<Def, P, St>,
- static defaultProps: void,
+ declare class ConnectedComponent<OP, P> extends React$Component<OP> {
+ static WrappedComponent: Class<React$Component<P>>,
+ getWrappedInstance(): React$Component<P>,
props: OP,
state: void
}
- declare type ConnectedComponentClass<OP, P, Def, St> = Class<
- ConnectedComponent<OP, P, Def, St>
+ declare type ConnectedComponentClass<OP, P> = Class<
+ ConnectedComponent<OP, P>
>;
- declare type Connector<OP, P> = {
- (
- component: StatelessComponent<P>
- ): ConnectedComponentClass<OP, P, void, void>,
- <Def, St>(
- component: Class<React$Component<Def, P, St>>
- ): ConnectedComponentClass<OP, P, Def, St>
- };
+ declare type Connector<OP, P> = (
+ component: React$ComponentType<P>
+ ) => ConnectedComponentClass<OP, P>;
+
+ declare class Provider<S, A> extends React$Component<{
+ store: Store<S, A>,
+ children?: any
+ }> {}
- declare class Provider<S, A> extends React$Component<
- void,
- { store: Store<S, A>, children?: any },
- void
- > {}
+ declare function createProvider(
+ storeKey?: string,
+ subKey?: string
+ ): Provider<*, *>;
declare type ConnectOptions = {
pure?: boolean,
diff --git a/flow-typed/npm/redux_v3.x.x.js b/flow-typed/npm/redux_v3.x.x.js
index f6445d9cf4..08c122efbd 100644
--- a/flow-typed/npm/redux_v3.x.x.js
+++ b/flow-typed/npm/redux_v3.x.x.js
@@ -1,5 +1,5 @@
-// flow-typed signature: 86993bd000012d3e1ef10d757d16952d
-// flow-typed version: a165222d28/redux_v3.x.x/flow_>=v0.33.x
+// flow-typed signature: 33b83b6284653250e74578cf4dbe6124
+// flow-typed version: e282e4128f/redux_v3.x.x/flow_>=v0.33.x
declare module 'redux' {
@@ -11,15 +11,15 @@ declare module 'redux' {
*/
- declare type DispatchAPI<A> = (action: A) => A;
- declare type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>;
+ declare export type DispatchAPI<A> = (action: A) => A;
+ declare export type Dispatch<A: { type: $Subtype<string> }> = DispatchAPI<A>;
- declare type MiddlewareAPI<S, A, D = Dispatch<A>> = {
+ declare export type MiddlewareAPI<S, A, D = Dispatch<A>> = {
dispatch: D;
getState(): S;
};
- declare type Store<S, A, D = Dispatch<A>> = {
+ declare export type Store<S, A, D = Dispatch<A>> = {
// rewrite MiddlewareAPI members in order to get nicer error messages (intersections produce long messages)
dispatch: D;
getState(): S;
@@ -27,58 +27,58 @@ declare module 'redux' {
replaceReducer(nextReducer: Reducer<S, A>): void
};
- declare type Reducer<S, A> = (state: S, action: A) => S;
+ declare export type Reducer<S, A> = (state: S, action: A) => S;
- declare type CombinedReducer<S, A> = (state: $Shape<S> & {} | void, action: A) => S;
+ declare export type CombinedReducer<S, A> = (state: $Shape<S> & {} | void, action: A) => S;
- declare type Middleware<S, A, D = Dispatch<A>> =
+ declare export type Middleware<S, A, D = Dispatch<A>> =
(api: MiddlewareAPI<S, A, D>) =>
(next: D) => D;
- declare type StoreCreator<S, A, D = Dispatch<A>> = {
+ declare export type StoreCreator<S, A, D = Dispatch<A>> = {
(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
};
- declare type StoreEnhancer<S, A, D = Dispatch<A>> = (next: StoreCreator<S, A, D>) => StoreCreator<S, A, D>;
+ declare export type StoreEnhancer<S, A, D = Dispatch<A>> = (next: StoreCreator<S, A, D>) => StoreCreator<S, A, D>;
- declare function createStore<S, A, D>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
- declare function createStore<S, A, D>(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
+ declare export function createStore<S, A, D>(reducer: Reducer<S, A>, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
+ declare export function createStore<S, A, D>(reducer: Reducer<S, A>, preloadedState: S, enhancer?: StoreEnhancer<S, A, D>): Store<S, A, D>;
- declare function applyMiddleware<S, A, D>(...middlewares: Array<Middleware<S, A, D>>): StoreEnhancer<S, A, D>;
+ declare export function applyMiddleware<S, A, D>(...middlewares: Array<Middleware<S, A, D>>): StoreEnhancer<S, A, D>;
- declare type ActionCreator<A, B> = (...args: Array<B>) => A;
- declare type ActionCreators<K, A> = { [key: K]: ActionCreator<A, any> };
+ declare export type ActionCreator<A, B> = (...args: Array<B>) => A;
+ declare export type ActionCreators<K, A> = { [key: K]: ActionCreator<A, any> };
- declare function bindActionCreators<A, C: ActionCreator<A, any>, D: DispatchAPI<A>>(actionCreator: C, dispatch: D): C;
- declare function bindActionCreators<A, K, C: ActionCreators<K, A>, D: DispatchAPI<A>>(actionCreators: C, dispatch: D): C;
+ declare export function bindActionCreators<A, C: ActionCreator<A, any>, D: DispatchAPI<A>>(actionCreator: C, dispatch: D): C;
+ declare export function bindActionCreators<A, K, C: ActionCreators<K, A>, D: DispatchAPI<A>>(actionCreators: C, dispatch: D): C;
- declare function combineReducers<O: Object, A>(reducers: O): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>;
+ declare export function combineReducers<O: Object, A>(reducers: O): CombinedReducer<$ObjMap<O, <S>(r: Reducer<S, any>) => S>, A>;
- declare function compose<A, B>(ab: (a: A) => B): (a: A) => B
- declare function compose<A, B, C>(
+ declare export function compose<A, B>(ab: (a: A) => B): (a: A) => B
+ declare export function compose<A, B, C>(
bc: (b: B) => C,
ab: (a: A) => B
): (a: A) => C
- declare function compose<A, B, C, D>(
+ declare export function compose<A, B, C, D>(
cd: (c: C) => D,
bc: (b: B) => C,
ab: (a: A) => B
): (a: A) => D
- declare function compose<A, B, C, D, E>(
+ declare export function compose<A, B, C, D, E>(
de: (d: D) => E,
cd: (c: C) => D,
bc: (b: B) => C,
ab: (a: A) => B
): (a: A) => E
- declare function compose<A, B, C, D, E, F>(
+ declare export function compose<A, B, C, D, E, F>(
ef: (e: E) => F,
de: (d: D) => E,
cd: (c: C) => D,
bc: (b: B) => C,
ab: (a: A) => B
): (a: A) => F
- declare function compose<A, B, C, D, E, F, G>(
+ declare export function compose<A, B, C, D, E, F, G>(
fg: (f: F) => G,
ef: (e: E) => F,
de: (d: D) => E,
@@ -86,7 +86,7 @@ declare module 'redux' {
bc: (b: B) => C,
ab: (a: A) => B
): (a: A) => G
- declare function compose<A, B, C, D, E, F, G, H>(
+ declare export function compose<A, B, C, D, E, F, G, H>(
gh: (g: G) => H,
fg: (f: F) => G,
ef: (e: E) => F,
@@ -95,7 +95,7 @@ declare module 'redux' {
bc: (b: B) => C,
ab: (a: A) => B
): (a: A) => H
- declare function compose<A, B, C, D, E, F, G, H, I>(
+ declare export function compose<A, B, C, D, E, F, G, H, I>(
hi: (h: H) => I,
gh: (g: G) => H,
fg: (f: F) => G,
diff --git a/index.android.js b/index.android.js
index c212bf9c9d..12035cbe4a 100644
--- a/index.android.js
+++ b/index.android.js
@@ -1 +1,26 @@
-export * from './react/index.native';
+// The type field of react-native application loader's React Element is created
+// as number and not Symbol, because it's not been defined by the polyfill yet.
+// We import the application renderer, before Symbol is defined, in order to use
+// number types as well. Otherwise this will result in the invariant exception,
+// because fiber thingy will not recognise root react-native component as React
+// Element, but as an Object.
+//
+// See node_modules/react-native/Libraries/polyfills/babelHelpers.js
+// :babelHelpers.createRawReactElement - that's where first react-native element
+// is created (super early - it's the app loader).
+//
+// See node_modules/react-native/Libraries/Renderer/ReactNativeFiber-dev.js
+// and look for REACT_ELEMENT_TYPE definition - it's defined later when Symbol
+// has been defined and type will not match.
+//
+// As an alternative solution we could stop using/polyfilling Symbols and
+// replace with classpath string constants or some kind of a wrapper around
+// that.
+
+import 'react-native/Libraries/ReactNative/renderApplication';
+
+// Android doesn't provide Symbol
+import 'es6-symbol/implement';
+
+import './react/index.native';
+
diff --git a/index.ios.js b/index.ios.js
index c212bf9c9d..56408336f6 100644
--- a/index.ios.js
+++ b/index.ios.js
@@ -1 +1,2 @@
-export * from './react/index.native';
+import './react/index.native';
+
diff --git a/ios/Podfile b/ios/Podfile
index ed8f1f3dc4..da1a0c6446 100644
--- a/ios/Podfile
+++ b/ios/Podfile
@@ -7,6 +7,8 @@ target 'JitsiMeet' do
pod 'React', :path => '../node_modules/react-native', :subspecs => [
'Core',
+ 'BatchedBridge',
+ 'DevSupport',
'RCTActionSheet',
'RCTAnimation',
'RCTImage',
@@ -15,7 +17,7 @@ target 'JitsiMeet' do
'RCTText',
'RCTWebSocket',
]
- pod 'Yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
+ pod 'yoga', :path => '../node_modules/react-native/ReactCommon/yoga'
pod 'react-native-background-timer',
:path => '../node_modules/react-native-background-timer'
diff --git a/ios/scripts/run-packager.sh b/ios/scripts/run-packager.sh
index 5dba335667..cc4718e719 100755
--- a/ios/scripts/run-packager.sh
+++ b/ios/scripts/run-packager.sh
@@ -11,6 +11,6 @@ if [[ "$CONFIGURATION" = "Debug" ]]; then
exit 2
fi
else
- open -g "$SRCROOT/../../node_modules/react-native/packager/launchPackager.command" || echo "Can't start packager automatically"
+ open -g "$SRCROOT/../../node_modules/react-native/scripts/launchPackager.command" || echo "Can't start packager automatically"
fi
fi
diff --git a/ios/sdk/sdk.xcodeproj/project.pbxproj b/ios/sdk/sdk.xcodeproj/project.pbxproj
index e9f35539ab..312768c78c 100644
--- a/ios/sdk/sdk.xcodeproj/project.pbxproj
+++ b/ios/sdk/sdk.xcodeproj/project.pbxproj
@@ -232,7 +232,7 @@
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
- shellScript = "export NODE_BINARY=node\n../../node_modules/react-native/packager/react-native-xcode.sh";
+ shellScript = "export NODE_BINARY=node\n../../node_modules/react-native/scripts/react-native-xcode.sh";
};
26796D8589142D80C8AFDA51 /* [CP] Check Pods Manifest.lock */ = {
isa = PBXShellScriptBuildPhase;
diff --git a/package.json b/package.json
index a8c9647d3d..d1a561f8d1 100644
--- a/package.json
+++ b/package.json
@@ -53,10 +53,10 @@
"nuclear-js": "1.4.0",
"postis": "2.2.0",
"prop-types": "15.6.0",
- "react": "15.6.1",
- "react-dom": "15.6.1",
+ "react": "16.0.0",
+ "react-dom": "16.0.0",
"react-i18next": "4.8.0",
- "react-native": "0.42.3",
+ "react-native": "0.49.5",
"react-native-background-timer": "1.3.0",
"react-native-callstats": "3.24.6",
"react-native-fetch-blob": "0.10.8",
@@ -94,7 +94,7 @@
"eslint-plugin-react-native": "3.1.0",
"expose-loader": "0.7.3",
"file-loader": "1.1.4",
- "flow-bin": "0.38.0",
+ "flow-bin": "0.53.0",
"imports-loader": "0.7.1",
"node-sass": "3.13.1",
"precommit-hook": "3.0.0",
diff --git a/react/features/always-on-top/AlwaysOnTop.js b/react/features/always-on-top/AlwaysOnTop.js
index 406522f5e7..b5d601af90 100644
--- a/react/features/always-on-top/AlwaysOnTop.js
+++ b/react/features/always-on-top/AlwaysOnTop.js
@@ -59,7 +59,7 @@ const toolbarButtons = {
* @class AlwaysOnTop
* @extends Component
*/
-export default class AlwaysOnTop extends Component {
+export default class AlwaysOnTop extends Component<*> {
/**
* Initializes new AlwaysOnTop instance.
*
diff --git a/react/features/app/functions.web.js b/react/features/app/functions.web.js
index 0782116e27..2d9d5b263e 100644
--- a/react/features/app/functions.web.js
+++ b/react/features/app/functions.web.js
@@ -39,7 +39,8 @@ const _INTERCEPT_COMPONENT_RULES = [
* @returns {UnsupportedMobileBrowser|void} If the rule is satisfied then
* we should intercept existing component by UnsupportedMobileBrowser.
*/
- () => {
+ // eslint-disable-next-line no-unused-vars
+ state => {
const OS = Platform.OS;
if (OS === 'android' || OS === 'ios') {
@@ -103,7 +104,7 @@ export function _getRouteToRender(stateOrGetState: Object | Function) {
*/
function _interceptComponent(
stateOrGetState: Object | Function,
- component: ReactElement<*>) {
+ component: React$Element<*>) {
let result;
const state = toState(stateOrGetState);
diff --git a/react/features/authentication/components/WaitForOwnerDialog.native.js b/react/features/authentication/components/WaitForOwnerDialog.native.js
index 492e4bb9a6..f20a7805d7 100644
--- a/react/features/authentication/components/WaitForOwnerDialog.native.js
+++ b/react/features/authentication/components/WaitForOwnerDialog.native.js
@@ -17,7 +17,7 @@ import styles from './styles';
*
* See {@link LoginDialog} description for more details.
*/
-class WaitForOwnerDialog extends Component {
+class WaitForOwnerDialog extends Component<*> {
/**
* WaitForOwnerDialog component's property types.
*
diff --git a/react/features/base/dialog/components/AbstractDialog.js b/react/features/base/dialog/components/AbstractDialog.js
index 7e85432d5c..c5bd47c710 100644
--- a/react/features/base/dialog/components/AbstractDialog.js
+++ b/react/features/base/dialog/components/AbstractDialog.js
@@ -9,7 +9,7 @@ import { DIALOG_PROP_TYPES } from '../constants';
/**
* An abstract implementation of a dialog on Web/React and mobile/react-native.
*/
-export default class AbstractDialog extends Component {
+export default class AbstractDialog extends Component<*, *> {
/**
* {@code AbstractDialog} React {@code Component}'s prop types.
*
diff --git a/react/features/base/jwt/components/CallOverlay.js b/react/features/base/jwt/components/CallOverlay.js
index 7aeb3f057d..9e55ad4fad 100644
--- a/react/features/base/jwt/components/CallOverlay.js
+++ b/react/features/base/jwt/components/CallOverlay.js
@@ -21,7 +21,7 @@ declare var interfaceConfig: Object;
*
* @extends Component
*/
-class CallOverlay extends Component {
+class CallOverlay extends Component<*, *> {
/**
* The (reference to the) {@link Audio} which plays/renders the audio
* depicting the ringing phase of the call establishment represented by this
diff --git a/react/features/base/media/components/native/Video.js b/react/features/base/media/components/native/Video.js
index 208583c943..d8c2b15e17 100644
--- a/react/features/base/media/components/native/Video.js
+++ b/react/features/base/media/components/native/Video.js
@@ -11,7 +11,7 @@ import styles from './styles';
* {@code HTMLVideoElement} and wraps around react-native-webrtc's
* {@link RTCView}.
*/
-export default class Video extends Component {
+export default class Video extends Component<*> {
/**
* {@code Video} component's property types.
*
diff --git a/react/features/base/react/components/AbstractContainer.js b/react/features/base/react/components/AbstractContainer.js
index fcdbd885c6..2a78d12829 100644
--- a/react/features/base/react/components/AbstractContainer.js
+++ b/react/features/base/react/components/AbstractContainer.js
@@ -9,7 +9,7 @@ import React, { Component } from 'react';
*
* @extends Component
*/
-export default class AbstractContainer extends Component {
+export default class AbstractContainer extends Component<*> {
/**
* {@code AbstractContainer} component's property types.
*
diff --git a/react/features/base/react/components/native/LoadingIndicator.js b/react/features/base/react/components/native/LoadingIndicator.js
index fbd12225ce..ac2d6e8dba 100644
--- a/react/features/base/react/components/native/LoadingIndicator.js
+++ b/react/features/base/react/components/native/LoadingIndicator.js
@@ -10,7 +10,7 @@ import { ColorPalette } from '../../../styles';
* a suitable visualization of long-running processes with indeterminate amounts
* of work to be done.
*/
-export default class LoadingIndicator extends Component {
+export default class LoadingIndicator extends Component<*> {
/**
* Implements React's {@link Component#render()}.
*
diff --git a/react/features/base/react/components/web/InlineDialogFailure.js b/react/features/base/react/components/web/InlineDialogFailure.js
index 717de872c7..1a07abde29 100644
--- a/react/features/base/react/components/web/InlineDialogFailure.js
+++ b/react/features/base/react/components/web/InlineDialogFailure.js
@@ -11,7 +11,7 @@ declare var interfaceConfig: Object;
/**
* Inline dialog that represents a failure and allows a retry.
*/
-class InlineDialogFailure extends Component {
+class InlineDialogFailure extends Component<*> {
/**
* {@code InlineDialogFailure}'s property types.
*
diff --git a/react/features/base/react/components/web/Watermarks.js b/react/features/base/react/components/web/Watermarks.js
index 5f7f3daf1f..7467600fba 100644
--- a/react/features/base/react/components/web/Watermarks.js
+++ b/react/features/base/react/components/web/Watermarks.js
@@ -21,7 +21,7 @@ const _RIGHT_WATERMARK_STYLE = {
* A Web Component which renders watermarks such as Jits, brand, powered by,
* etc.
*/
-class Watermarks extends Component {
+class Watermarks extends Component<*, *> {
static propTypes = {
_isGuest: PropTypes.bool,
t: PropTypes.func
diff --git a/react/features/base/react/prop-types-polyfill.js b/react/features/base/react/prop-types-polyfill.js
new file mode 100644
index 0000000000..4131cef222
--- /dev/null
+++ b/react/features/base/react/prop-types-polyfill.js
@@ -0,0 +1,8 @@
+import React from 'react';
+import PropTypes from 'prop-types';
+
+/* eslint-disable react/no-deprecated */
+if (typeof React.PropTypes === 'undefined') {
+ React.PropTypes = PropTypes;
+}
+/* eslint-enable react/no-deprecated */
diff --git a/react/features/conference/components/Conference.web.js b/react/features/conference/components/Conference.web.js
index 350ac89c53..78d4f420dc 100644
--- a/react/features/conference/components/Conference.web.js
+++ b/react/features/conference/components/Conference.web.js
@@ -21,7 +21,7 @@ declare var interfaceConfig: Object;
/**
* The conference page of the Web application.
*/
-class Conference extends Component {
+class Conference extends Component<*> {
_onShowToolbar: Function;
_originalOnShowToolbar: Function;
diff --git a/react/features/contact-list/components/ContactListPanel.web.js b/react/features/contact-list/components/ContactListPanel.web.js
index d2c15cc05f..968b9cc316 100644
--- a/react/features/contact-list/components/ContactListPanel.web.js
+++ b/react/features/contact-list/components/ContactListPanel.web.js
@@ -16,7 +16,7 @@ declare var interfaceConfig: Object;
*
* @extends Component
*/
-class ContactListPanel extends Component {
+class ContactListPanel extends Component<*> {
/**
* Default values for {@code ContactListPanel} component's properties.
*
diff --git a/react/features/desktop-picker/components/DesktopPicker.js b/react/features/desktop-picker/components/DesktopPicker.js
index 3f3ad8b8c1..c896d96033 100644
--- a/react/features/desktop-picker/components/DesktopPicker.js
+++ b/react/features/desktop-picker/components/DesktopPicker.js
@@ -47,7 +47,7 @@ const VALID_TYPES = Object.keys(TAB_LABELS);
*
* @extends Component
*/
-class DesktopPicker extends Component {
+class DesktopPicker extends Component<*, *> {
/**
* DesktopPicker component's property types.
*
diff --git a/react/features/feedback/components/FeedbackButton.web.js b/react/features/feedback/components/FeedbackButton.web.js
index fd770519cf..a6b20770d8 100644
--- a/react/features/feedback/components/FeedbackButton.web.js
+++ b/react/features/feedback/components/FeedbackButton.web.js
@@ -12,7 +12,7 @@ import { openFeedbackDialog } from '../actions';
/**
* Implements a Web/React Component which renders a feedback button.
*/
-class FeedbackButton extends Component {
+class FeedbackButton extends Component<*> {
_onClick: Function;
static propTypes = {
diff --git a/react/features/filmstrip/components/Filmstrip.native.js b/react/features/filmstrip/components/Filmstrip.native.js
index 3d8ded344f..7ceceb8c0f 100644
--- a/react/features/filmstrip/components/Filmstrip.native.js
+++ b/react/features/filmstrip/components/Filmstrip.native.js
@@ -16,7 +16,7 @@ import { styles } from './_';
*
* @extends Component
*/
-class Filmstrip extends Component {
+class Filmstrip extends Component<*> {
/**
* Filmstrip component's property types.
*
diff --git a/react/features/filmstrip/components/Filmstrip.web.js b/react/features/filmstrip/components/Filmstrip.web.js
index c42f1d1c5f..5f5d9326f3 100644
--- a/react/features/filmstrip/components/Filmstrip.web.js
+++ b/react/features/filmstrip/components/Filmstrip.web.js
@@ -17,7 +17,7 @@ import { shouldRemoteVideosBeVisible } from '../functions';
*
* @extends Component
*/
-class Filmstrip extends Component {
+class Filmstrip extends Component<*> {
_isHovered: boolean;
_notifyOfHoveredStateUpdate: Function;
diff --git a/react/features/invite/components/AddPeopleDialog.web.js b/react/features/invite/components/AddPeopleDialog.web.js
index f52a798718..19a2c88d74 100644
--- a/react/features/invite/components/AddPeopleDialog.web.js
+++ b/react/features/invite/components/AddPeopleDialog.web.js
@@ -19,7 +19,7 @@ declare var interfaceConfig: Object;
/**
* The dialog that allows to invite people to the call.
*/
-class AddPeopleDialog extends Component {
+class AddPeopleDialog extends Component<*, *> {
/**
* {@code AddPeopleDialog}'s property types.
*
@@ -311,7 +311,7 @@ class AddPeopleDialog extends Component {
);
}
- _setMultiSelectElement: (Object) => void;
+ _setMultiSelectElement: (React$ElementRef<*> | null) => mixed;
/**
* Sets the instance variable for the multi select component
diff --git a/react/features/large-video/components/LargeVideo.native.js b/react/features/large-video/components/LargeVideo.native.js
index 4f289e560b..e20855db85 100644
--- a/react/features/large-video/components/LargeVideo.native.js
+++ b/react/features/large-video/components/LargeVideo.native.js
@@ -14,7 +14,7 @@ import styles from './styles';
*
* @extends Component
*/
-class LargeVideo extends Component {
+class LargeVideo extends Component<*> {
/**
* LargeVideo component's property types.
*
diff --git a/react/features/large-video/components/LargeVideo.web.js b/react/features/large-video/components/LargeVideo.web.js
index c8f82107f3..fa789bbaba 100644
--- a/react/features/large-video/components/LargeVideo.web.js
+++ b/react/features/large-video/components/LargeVideo.web.js
@@ -14,7 +14,7 @@ declare var interfaceConfig: Object;
*
* @extends Component
*/
-export default class LargeVideo extends Component {
+export default class LargeVideo extends Component<*> {
/**
* Implements React's {@link Component#render()}.
*
diff --git a/react/features/mobile/network-activity/components/NetworkActivityIndicator.js b/react/features/mobile/network-activity/components/NetworkActivityIndicator.js
index f8ada05fb6..5358eabaa5 100644
--- a/react/features/mobile/network-activity/components/NetworkActivityIndicator.js
+++ b/react/features/mobile/network-activity/components/NetworkActivityIndicator.js
@@ -10,7 +10,7 @@ import { LoadingIndicator } from '../../../base/react';
* The React {@code Component} which renders a progress indicator when there
* are ongoing network requests.
*/
-class NetworkActivityIndicator extends Component {
+class NetworkActivityIndicator extends Component<*> {
/**
* {@code NetworkActivityIndicator} React {@code Component}'s prop types.
*
diff --git a/react/features/overlay/components/AbstractPageReloadOverlay.js b/react/features/overlay/components/AbstractPageReloadOverlay.js
index 5fa4af6606..9985bd8612 100644
--- a/react/features/overlay/components/AbstractPageReloadOverlay.js
+++ b/react/features/overlay/components/AbstractPageReloadOverlay.js
@@ -16,7 +16,7 @@ const logger = require('jitsi-meet-logger').getLogger(__filename);
/**
* Implements abstract React Component for the page reload overlays.
*/
-export default class AbstractPageReloadOverlay extends Component {
+export default class AbstractPageReloadOverlay extends Component<*, *> {
/**
* AbstractPageReloadOverlay component's property types.
*
diff --git a/react/features/overlay/components/ReloadButton.js b/react/features/overlay/components/ReloadButton.js
index 13cfe597f5..9a9f916e10 100644
--- a/react/features/overlay/components/ReloadButton.js
+++ b/react/features/overlay/components/ReloadButton.js
@@ -12,7 +12,7 @@ import { _reloadNow } from '../actions';
* Implements a React Component for button for the overlays that will reload
* the page.
*/
-class ReloadButton extends Component {
+class ReloadButton extends Component<*> {
/**
* PageReloadOverlay component's property types.
*
diff --git a/react/features/overlay/reducer.js b/react/features/overlay/reducer.js
index d9832655c2..dc0a462300 100644
--- a/react/features/overlay/reducer.js
+++ b/react/features/overlay/reducer.js
@@ -29,7 +29,7 @@ ReducerRegistry.register('features/overlay', (state = {}, action) => {
return _conferenceFailed(state, action);
case CONNECTION_ESTABLISHED:
- return _connectionEstablished(state, action);
+ return _connectionEstablished(state);
case CONNECTION_FAILED:
return _connectionFailed(state, action);
@@ -41,7 +41,7 @@ ReducerRegistry.register('features/overlay', (state = {}, action) => {
return _mediaPermissionPromptVisibilityChanged(state, action);
case SUSPEND_DETECTED:
- return _suspendDetected(state, action);
+ return _suspendDetected(state);
}
return state;
diff --git a/react/features/room-lock/components/PasswordRequiredPrompt.native.js b/react/features/room-lock/components/PasswordRequiredPrompt.native.js
index 5f5b514281..ffe8df3fd8 100644
--- a/react/features/room-lock/components/PasswordRequiredPrompt.native.js
+++ b/react/features/room-lock/components/PasswordRequiredPrompt.native.js
@@ -36,7 +36,7 @@ const _TEXT_INPUT_PROPS = {
* Implements a React {@code Component} which prompts the user when a password
* is required to join a conference.
*/
-class PasswordRequiredPrompt extends Component {
+class PasswordRequiredPrompt extends Component<Props> {
/**
* {@code PasswordRequiredPrompt}'s React {@code Component} prop types.
*
diff --git a/react/features/room-lock/components/PasswordRequiredPrompt.web.js b/react/features/room-lock/components/PasswordRequiredPrompt.web.js
index 77e5622957..407b2a7cf0 100644
--- a/react/features/room-lock/components/PasswordRequiredPrompt.web.js
+++ b/react/features/room-lock/components/PasswordRequiredPrompt.web.js
@@ -12,7 +12,7 @@ import { translate } from '../../base/i18n';
* Implements a React Component which prompts the user when a password is
* required to join a conference.
*/
-class PasswordRequiredPrompt extends Component {
+class PasswordRequiredPrompt extends Component<*, *> {
/**
* PasswordRequiredPrompt component's property types.
*
diff --git a/react/features/room-lock/components/RoomLockPrompt.native.js b/react/features/room-lock/components/RoomLockPrompt.native.js
index 42903ac434..eeef69940b 100644
--- a/react/features/room-lock/components/RoomLockPrompt.native.js
+++ b/react/features/room-lock/components/RoomLockPrompt.native.js
@@ -22,7 +22,7 @@ const _TEXT_INPUT_PROPS = {
* Implements a React Component which prompts the user for a password to lock a
* conference/room.
*/
-class RoomLockPrompt extends Component {
+class RoomLockPrompt extends Component<*> {
/**
* RoomLockPrompt component's property types.
*
diff --git a/react/features/speaker-stats/components/SpeakerStats.js b/react/features/speaker-stats/components/SpeakerStats.js
index 0471cc4484..30e82f21b9 100644
--- a/react/features/speaker-stats/components/SpeakerStats.js
+++ b/react/features/speaker-stats/components/SpeakerStats.js
@@ -17,7 +17,7 @@ declare var interfaceConfig: Object;
*
* @extends Component
*/
-class SpeakerStats extends Component {
+class SpeakerStats extends Component<*, *> {
/**
* SpeakerStats component's property types.
*
diff --git a/react/features/toolbox/components/Notice.js b/react/features/toolbox/components/Notice.js
index 06b7539732..cb1497e1b0 100644
--- a/react/features/toolbox/components/Notice.js
+++ b/react/features/toolbox/components/Notice.js
@@ -9,7 +9,7 @@ declare var config: Object;
*
* @class Notice
*/
-export default class Notice extends Component {
+export default class Notice extends Component<*, *> {
state: Object;
/**
diff --git a/react/features/toolbox/components/PrimaryToolbar.web.js b/react/features/toolbox/components/PrimaryToolbar.web.js
index 0a075da593..754cfe5b6e 100644
--- a/react/features/toolbox/components/PrimaryToolbar.web.js
+++ b/react/features/toolbox/components/PrimaryToolbar.web.js
@@ -15,7 +15,7 @@ declare var interfaceConfig: Object;
* @class PrimaryToolbar
* @extends Component
*/
-class PrimaryToolbar extends Component {
+class PrimaryToolbar extends Component<*, *> {
static propTypes = {
/**
@@ -36,7 +36,7 @@ class PrimaryToolbar extends Component {
*
* @returns {ReactElement}
*/
- render(): ReactElement<*> | null {
+ render(): React$Element<*> | null {
const { _primaryToolbarButtons } = this.props;
// The number of buttons to show in the toolbar isn't fixed, it depends
diff --git a/react/features/toolbox/components/ProfileButton.web.js b/react/features/toolbox/components/ProfileButton.web.js
index c94d553bd3..97128197f5 100644
--- a/react/features/toolbox/components/ProfileButton.web.js
+++ b/react/features/toolbox/components/ProfileButton.web.js
@@ -30,7 +30,7 @@ const DEFAULT_BUTTON_CONFIGURATION = {
*
* @extends Component
*/
-class ProfileButton extends Component {
+class ProfileButton extends Component<*> {
_onClick: Function;
/**
diff --git a/react/features/toolbox/components/SecondaryToolbar.web.js b/react/features/toolbox/components/SecondaryToolbar.web.js
index d65b7a19e6..a20b34472c 100644
--- a/react/features/toolbox/components/SecondaryToolbar.web.js
+++ b/react/features/toolbox/components/SecondaryToolbar.web.js
@@ -22,7 +22,7 @@ declare var config: Object;
* @class SecondaryToolbar
* @extends Component
*/
-class SecondaryToolbar extends Component {
+class SecondaryToolbar extends Component<*, *> {
state: Object;
/**
@@ -86,7 +86,7 @@ class SecondaryToolbar extends Component {
*
* @returns {ReactElement}
*/
- render(): ReactElement<*> | null {
+ render(): React$Element<*> | null {
const { _callStatsID, _secondaryToolbarButtons } = this.props;
// The number of buttons to show in the toolbar isn't fixed, it depends
diff --git a/react/features/toolbox/components/StatelessToolbar.web.js b/react/features/toolbox/components/StatelessToolbar.web.js
index b6f6b6c12f..74e28092b4 100644
--- a/react/features/toolbox/components/StatelessToolbar.web.js
+++ b/react/features/toolbox/components/StatelessToolbar.web.js
@@ -10,7 +10,7 @@ import React, { Component } from 'react';
* @class StatelessToolbar
* @extends Component
*/
-export default class StatelessToolbar extends Component {
+export default class StatelessToolbar extends Component<*> {
/**
* Base toolbar component's property types.
*
@@ -44,7 +44,7 @@ export default class StatelessToolbar extends Component {
* @inheritdoc
* @returns {ReactElement}
*/
- render(): ReactElement<*> {
+ render(): React$Element<*> {
const {
className,
onMouseOut,
diff --git a/react/features/toolbox/components/StatelessToolbarButton.js b/react/features/toolbox/components/StatelessToolbarButton.js
index 333ca7ed5d..cb5193bc85 100644
--- a/react/features/toolbox/components/StatelessToolbarButton.js
+++ b/react/features/toolbox/components/StatelessToolbarButton.js
@@ -91,7 +91,7 @@ export default class StatelessToolbarButton extends AbstractToolbarButton {
* @inheritdoc
* @returns {ReactElement}
*/
- render(): ReactElement<*> {
+ render(): React$Element<*> {
const { button } = this.props;
const attributes = getButtonAttributesByProps(button);
diff --git a/react/features/toolbox/components/Toolbar.web.js b/react/features/toolbox/components/Toolbar.web.js
index 56a56e867e..414c8c9fbe 100644
--- a/react/features/toolbox/components/Toolbar.web.js
+++ b/react/features/toolbox/components/Toolbar.web.js
@@ -17,7 +17,7 @@ import ToolbarButton from './ToolbarButton';
* @class Toolbar
* @extends Component
*/
-class Toolbar extends Component {
+class Toolbar extends Component<*> {
_onMouseOut: Function;
_onMouseOver: Function;
_renderToolbarButton: Function;
@@ -75,7 +75,7 @@ class Toolbar extends Component {
* @inheritdoc
* @returns {ReactElement}
*/
- render(): ReactElement<*> {
+ render(): React$Element<*> {
const props = {
className: this.props.className,
onMouseOut: this._onMouseOut,
@@ -123,7 +123,7 @@ class Toolbar extends Component {
* @private
* @returns {ReactElement} A toolbar button.
*/
- _renderToolbarButton(keyValuePair: Array<*>): ReactElement<*> {
+ _renderToolbarButton(keyValuePair: Array<*>): React$Element<*> {
const [ key, button ] = keyValuePair;
if (button.component) {
diff --git a/react/features/toolbox/components/ToolbarButton.web.js b/react/features/toolbox/components/ToolbarButton.web.js
index 5906cb9db3..f5cd55cfee 100644
--- a/react/features/toolbox/components/ToolbarButton.web.js
+++ b/react/features/toolbox/components/ToolbarButton.web.js
@@ -18,7 +18,7 @@ declare var APP: Object;
* @class ToolbarButton
* @extends AbstractToolbarButton
*/
-class ToolbarButton extends Component {
+class ToolbarButton extends Component<*> {
button: Object;
_onClick: Function;
@@ -103,7 +103,7 @@ class ToolbarButton extends Component {
* @inheritdoc
* @returns {ReactElement}
*/
- render(): ReactElement<*> {
+ render(): React$Element<*> {
const { button, t, tooltipPosition } = this.props;
const props = {
...this.props,
diff --git a/react/features/toolbox/components/Toolbox.web.js b/react/features/toolbox/components/Toolbox.web.js
index 29351f7198..0f5f4b63a6 100644
--- a/react/features/toolbox/components/Toolbox.web.js
+++ b/react/features/toolbox/components/Toolbox.web.js
@@ -22,7 +22,7 @@ declare var interfaceConfig: Object;
/**
* Implements the conference toolbox on React/Web.
*/
-class Toolbox extends Component {
+class Toolbox extends Component<*> {
/**
* App component's property types.
*
@@ -89,7 +89,7 @@ class Toolbox extends Component {
* @inheritdoc
* @returns {ReactElement}
*/
- render(): ReactElement<*> {
+ render(): React$Element<*> {
return (
<div className = 'toolbox'>
{
@@ -109,7 +109,7 @@ class Toolbox extends Component {
* @returns {ReactElement}
* @private
*/
- _renderSubject(): ReactElement<*> | null {
+ _renderSubject(): React$Element<*> | null {
const { _subjectSlideIn, _subject } = this.props;
const classNames = [ 'subject' ];
@@ -146,7 +146,7 @@ class Toolbox extends Component {
* @returns {ReactElement}
* @private
*/
- _renderToolbars(): ReactElement<*> | null {
+ _renderToolbars(): React$Element<*> | null {
// In case we're not in alwaysVisible mode the toolbox should not be
// shown until timeoutID is initialized.
if (!this.props._alwaysVisible && this.props._timeoutID === null) {
diff --git a/react/features/unsupported-browser/components/HideNotificationBarStyle.js b/react/features/unsupported-browser/components/HideNotificationBarStyle.js
index fefefe8b9c..1ea2c36d3c 100644
--- a/react/features/unsupported-browser/components/HideNotificationBarStyle.js
+++ b/react/features/unsupported-browser/components/HideNotificationBarStyle.js
@@ -9,7 +9,7 @@ import React, { Component } from 'react';
* @private
* @returns {ReactElement}
*/
-export default class HideNotificationBarStyles extends Component {
+export default class HideNotificationBarStyles extends Component<*> {
/**
* Implements React's {@link Component#render()}.
diff --git a/react/features/unsupported-browser/components/NoMobileApp.js b/react/features/unsupported-browser/components/NoMobileApp.js
index b816ffe985..029ad81cfb 100644
--- a/react/features/unsupported-browser/components/NoMobileApp.js
+++ b/react/features/unsupported-browser/components/NoMobileApp.js
@@ -11,7 +11,7 @@ declare var interfaceConfig: Object;
*
* @class NoMobileApp
*/
-export default class NoMobileApp extends Component {
+export default class NoMobileApp extends Component<*> {
/**
* Renders the component.
*
diff --git a/react/features/unsupported-browser/components/PluginRequiredBrowser.js b/react/features/unsupported-browser/components/PluginRequiredBrowser.js
index d2eb75ca23..2cb5ac4157 100644
--- a/react/features/unsupported-browser/components/PluginRequiredBrowser.js
+++ b/react/features/unsupported-browser/components/PluginRequiredBrowser.js
@@ -9,7 +9,7 @@ import { CHROME, CHROMIUM, FIREFOX } from './browserLinks';
*
* @class PluginRequiredBrowser
*/
-export default class PluginRequiredBrowser extends Component {
+export default class PluginRequiredBrowser extends Component<*> {
/**
* Renders the component.
diff --git a/react/features/unsupported-browser/components/UnsupportedDesktopBrowser.js b/react/features/unsupported-browser/components/UnsupportedDesktopBrowser.js
index cfb0d09b0c..8473bc6e44 100644
--- a/react/features/unsupported-browser/components/UnsupportedDesktopBrowser.js
+++ b/react/features/unsupported-browser/components/UnsupportedDesktopBrowser.js
@@ -22,7 +22,7 @@ const _SNS = 'unsupported-desktop-browser';
*
* @class UnsupportedDesktopBrowser
*/
-class UnsupportedDesktopBrowser extends Component {
+class UnsupportedDesktopBrowser extends Component<*> {
/**
* UnsupportedDesktopBrowser component's property types.
*
diff --git a/react/features/unsupported-browser/components/UnsupportedMobileBrowser.js b/react/features/unsupported-browser/components/UnsupportedMobileBrowser.js
index 46f6137ca4..fd1dc2eff7 100644
--- a/react/features/unsupported-browser/components/UnsupportedMobileBrowser.js
+++ b/react/features/unsupported-browser/components/UnsupportedMobileBrowser.js
@@ -42,7 +42,7 @@ const _URLS = {
*
* @class UnsupportedMobileBrowser
*/
-class UnsupportedMobileBrowser extends Component {
+class UnsupportedMobileBrowser extends Component<*, *> {
state: Object;
/**
diff --git a/react/features/welcome/components/AbstractWelcomePage.js b/react/features/welcome/components/AbstractWelcomePage.js
index 2249fb4915..27588f1a43 100644
--- a/react/features/welcome/components/AbstractWelcomePage.js
+++ b/react/features/welcome/components/AbstractWelcomePage.js
@@ -21,7 +21,7 @@ type Props = {
*
* @abstract
*/
-export class AbstractWelcomePage extends Component {
+export class AbstractWelcomePage extends Component<*, *> {
/**
* {@code AbstractWelcomePage}'s React {@code Component} prop types.
*
diff --git a/react/features/welcome/components/BlankPage.native.js b/react/features/welcome/components/BlankPage.native.js
index 168f5c512f..aa4fbcec85 100644
--- a/react/features/welcome/components/BlankPage.native.js
+++ b/react/features/welcome/components/BlankPage.native.js
@@ -16,7 +16,7 @@ import styles from './styles';
* {@code Route} to render. Renders a progress indicator when there are ongoing
* network requests.
*/
-class BlankPage extends Component {
+class BlankPage extends Component<*> {
/**
* {@code BlankPage} React {@code Component}'s prop types.
*
diff --git a/react/features/welcome/components/LocalVideoTrackUnderlay.native.js b/react/features/welcome/components/LocalVideoTrackUnderlay.native.js
index 301156b5d2..264c0db2e6 100644
--- a/react/features/welcome/components/LocalVideoTrackUnderlay.native.js
+++ b/react/features/welcome/components/LocalVideoTrackUnderlay.native.js
@@ -14,7 +14,7 @@ import styles from './styles';
* Implements a React {@code Component} which underlays the local video track,
* if any, underneath its children.
*/
-class LocalVideoTrackUnderlay extends Component {
+class LocalVideoTrackUnderlay extends Component<*, *> {
state: {
/**
diff --git a/react/index.native.js b/react/index.native.js
index 45a86f4db1..0d9b3a3b46 100644
--- a/react/index.native.js
+++ b/react/index.native.js
@@ -1,4 +1,7 @@
-import 'es6-symbol/implement';
+// FIXME: remove once react-native-webrtc and react-native-prompt imports
+// PropTypes from the 'prop-types' lib instead of 'react'.
+import './features/base/react/prop-types-polyfill.js';
+
import PropTypes from 'prop-types';
import React, { Component } from 'react';
import { AppRegistry, Linking } from 'react-native';