From 0a6dbfcf3eb63871ec9d8c63cbf5c7c3c301c6ec Mon Sep 17 00:00:00 2001 From: Pascal Hartig Date: Tue, 30 Oct 2018 16:59:22 -0700 Subject: [PATCH] Bump flow version Reviewed By: priteshrnandgaonkar Differential Revision: D12839991 fbshipit-source-id: 1dcca0a0bc682bf24430c7313d4af14b87cfc44d --- .flowconfig | 2 +- flow-typed/electron-menu.js | 2 +- flow-typed/npm/electron-v3.0.0-beta.4.js | 62 +- flow-typed/npm/lodash_v4.x.x.js | 2730 ++++++++++++++--- package.json | 2 +- src/plugins/layout/index.js | 7 +- src/ui/components/ErrorBoundary.js | 2 +- .../data-inspector/DataDescription.js | 4 +- .../data-inspector/DataInspector.js | 4 +- yarn.lock | 7 +- 10 files changed, 2351 insertions(+), 471 deletions(-) diff --git a/.flowconfig b/.flowconfig index 404875c98..2bce30b60 100644 --- a/.flowconfig +++ b/.flowconfig @@ -23,4 +23,4 @@ module.name_mapper='flipper' -> '/src/index.js' suppress_type=$FlowFixMe [version] -0.76.0 +^0.84.0 diff --git a/flow-typed/electron-menu.js b/flow-typed/electron-menu.js index 4043a58bd..24635b4e2 100644 --- a/flow-typed/electron-menu.js +++ b/flow-typed/electron-menu.js @@ -59,7 +59,7 @@ type Electron$MenuItemOptions = { }; declare class Electron$MenuItem { - constructor: (options: Electron$MenuItemOptions) => void; + constructor(options: Electron$MenuItemOptions): Electron$MenuItem; enabled: boolean; visible: boolean; checked: boolean; diff --git a/flow-typed/npm/electron-v3.0.0-beta.4.js b/flow-typed/npm/electron-v3.0.0-beta.4.js index f585fe7bc..cb670c7b0 100644 --- a/flow-typed/npm/electron-v3.0.0-beta.4.js +++ b/flow-typed/npm/electron-v3.0.0-beta.4.js @@ -1842,11 +1842,11 @@ declare module 'electron' { ((eventName: 'devtools-focused', callback: () => void) => void); } declare class BrowserView { - constructor: ( + constructor( options?: ?{ webPreferences?: ?{}, }, - ) => BrowserView; + ): BrowserView; static getAllViews: () => Array; static fromWebContents: (webContents: WebContents) => BrowserView | null; static fromId: (id: number) => BrowserView; @@ -1862,7 +1862,7 @@ declare module 'electron' { id: number; } declare class BrowserWindow { - constructor: ( + constructor( options?: ?{ width?: ?number, height?: ?number, @@ -1968,7 +1968,7 @@ declare module 'electron' { navigateOnDragDrop?: ?boolean, }, }, - ) => BrowserWindow; + ): BrowserWindow; static getAllWindows: () => Array; static getFocusedWindow: () => BrowserWindow | null; static fromWebContents: (webContents: WebContents) => BrowserWindow; @@ -2237,7 +2237,7 @@ declare module 'electron' { closed: boolean; } declare class ClientRequest { - constructor: (options: Object | string) => ClientRequest; + constructor(options: Object | string): ClientRequest; setHeader: (name: string, value: {}) => void; getHeader: ( name: string, @@ -2463,7 +2463,7 @@ declare module 'electron' { ((eventName: 'error', callback: () => void) => void); } declare class Menu { - constructor: () => Menu; + constructor(): Menu; static setApplicationMenu: (menu: Menu | null) => void; static getApplicationMenu: () => Menu | null; static sendActionToFirstResponder: (action: string) => void; @@ -2500,7 +2500,7 @@ declare module 'electron' { ) => void); } declare class MenuItem { - constructor: (options: { + constructor(options: { click?: ?Function, role?: ?string, type?: ?'normal' | 'separator' | 'submenu' | 'checkbox' | 'radio', @@ -2514,7 +2514,7 @@ declare module 'electron' { submenu?: ?Array | Menu, id?: ?string, position?: ?string, - }) => MenuItem; + }): MenuItem; enabled: boolean; visible: boolean; checked: boolean; @@ -2564,7 +2564,7 @@ declare module 'electron' { }) => void; } declare class Notification { - constructor: (options: { + constructor(options: { title: string, subtitle?: ?string, body: string, @@ -2575,7 +2575,7 @@ declare module 'electron' { sound?: ?string, actions?: ?Array, closeButtonText?: ?string, - }) => Notification; + }): Notification; static isSupported: () => boolean; show: () => void; close: () => void; @@ -2676,7 +2676,7 @@ declare module 'electron' { ) => void; } declare class TouchBar { - constructor: (options: { + constructor(options: { items: Array< | TouchBarButton | TouchBarColorPicker @@ -2699,7 +2699,7 @@ declare module 'electron' { | TouchBarSlider | TouchBarSpacer | null, - }) => TouchBar; + }): TouchBar; static TouchBarButton: Class; static TouchBarColorPicker: Class; static TouchBarGroup: Class; @@ -2712,7 +2712,7 @@ declare module 'electron' { escapeItem: TouchBarItem; } declare class Tray { - constructor: (image: NativeImage | string) => Tray; + constructor(image: NativeImage | string): Tray; destroy: () => void; setImage: (image: NativeImage | string) => void; setPressedImage: (image: NativeImage | string) => void; @@ -3637,51 +3637,51 @@ declare module 'electron' { ((listener: Function) => void); } declare class TouchBarButton { - constructor: (options: { + constructor(options: { label?: ?string, backgroundColor?: ?string, icon?: ?NativeImage, iconPosition?: ?'left' | 'right' | 'overlay', click?: ?Function, - }) => TouchBarButton; + }): TouchBarButton; label: string; backgroundColor: string; icon: NativeImage; } declare class TouchBarColorPicker { - constructor: (options: { + constructor(options: { availableColors?: ?Array, selectedColor?: ?string, change?: ?Function, - }) => TouchBarColorPicker; + }): TouchBarColorPicker; availableColors: Array; selectedColor: string; } declare class TouchBarGroup { - constructor: (options: { + constructor(options: { items: TouchBar, - }) => TouchBarGroup; + }): TouchBarGroup; } declare class TouchBarLabel { - constructor: (options: { + constructor(options: { label?: ?string, textColor?: ?string, - }) => TouchBarLabel; + }): TouchBarLabel; label: string; textColor: string; } declare class TouchBarPopover { - constructor: (options: { + constructor(options: { label?: ?string, icon?: ?NativeImage, items?: ?TouchBar, showCloseButton?: ?boolean, - }) => TouchBarPopover; + }): TouchBarPopover; label: string; icon: NativeImage; } declare class TouchBarScrubber { - constructor: (options: { + constructor(options: { items: Array, select: Function, highlight: Function, @@ -3690,7 +3690,7 @@ declare module 'electron' { showArrowButtons: boolean, mode: string, continuous: boolean, - }) => TouchBarScrubber; + }): TouchBarScrubber; items: Array; selectedStyle: string; overlayStyle: string; @@ -3699,7 +3699,7 @@ declare module 'electron' { continuous: boolean; } declare class TouchBarSegmentedControl { - constructor: (options: { + constructor(options: { segmentStyle?: | ?'automatic' | 'rounded' @@ -3713,28 +3713,28 @@ declare module 'electron' { segments: Array, selectedIndex?: ?number, change: Function, - }) => TouchBarSegmentedControl; + }): TouchBarSegmentedControl; segmentStyle: string; segments: Array; selectedIndex: number; } declare class TouchBarSlider { - constructor: (options: { + constructor(options: { label?: ?string, value?: ?number, minValue?: ?number, maxValue?: ?number, change?: ?Function, - }) => TouchBarSlider; + }): TouchBarSlider; label: string; value: number; minValue: number; maxValue: number; } declare class TouchBarSpacer { - constructor: (options: { + constructor(options: { size?: ?'small' | 'large' | 'flexible', - }) => TouchBarSpacer; + }): TouchBarSpacer; } declare type Accelerator = any; declare type WebFrame = any; diff --git a/flow-typed/npm/lodash_v4.x.x.js b/flow-typed/npm/lodash_v4.x.x.js index 9bf5bdfef..50631683c 100644 --- a/flow-typed/npm/lodash_v4.x.x.js +++ b/flow-typed/npm/lodash_v4.x.x.js @@ -1,6 +1,3 @@ -// flow-typed signature: fcbc2c8209ca21df4e50468c1f1cf2cf -// flow-typed version: 9dc62314fe/lodash_v4.x.x/flow_>=v0.55.x - declare module "lodash" { declare type __CurriedFunction1 = (...r: [AA]) => R; declare type CurriedFunction1 = __CurriedFunction1; @@ -193,7 +190,7 @@ declare module "lodash" { ) => mixed; declare type Iteratee = _Iteratee | Object | string; declare type FlatMapIteratee = - | ((item: T, index: number, array: ?Array) => Array) + | ((item: T, index: number, array: ?$ReadOnlyArray) => Array) | Object | string; declare type Comparator = (item: T, item2: T) => boolean; @@ -202,180 +199,251 @@ declare module "lodash" { | ((item: T, index: number, array: Array) => U) | propertyIterateeShorthand; + declare type ReadOnlyMapIterator = + | ((item: T, index: number, array: $ReadOnlyArray) => U) + | propertyIterateeShorthand; + declare type OMapIterator = | ((item: T, key: string, object: O) => U) | propertyIterateeShorthand; declare class Lodash { // Array - chunk(array: ?Array, size?: number): Array>; - compact(array: Array): Array; - concat(base: Array, ...elements: Array): Array; - difference(array: ?Array, values?: Array): Array; + chunk(array?: ?Array, size?: ?number): Array>; + compact(array?: ?Array): Array; + concat( + base?: ?$ReadOnlyArray, + ...elements: Array + ): Array; + difference( + array?: ?$ReadOnlyArray, + ...values: Array> + ): Array; differenceBy( - array: ?Array, - values: Array, - iteratee: ValueOnlyIteratee + array?: ?$ReadOnlyArray, + values?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee ): T[]; - differenceWith(array: T[], values: T[], comparator?: Comparator): T[]; - drop(array: ?Array, n?: number): Array; - dropRight(array: ?Array, n?: number): Array; - dropRightWhile(array: ?Array, predicate?: Predicate): Array; - dropWhile(array: ?Array, predicate?: Predicate): Array; + differenceWith( + array?: ?$ReadOnlyArray, + values?: ?$ReadOnlyArray, + comparator?: ?Comparator + ): T[]; + drop(array?: ?Array, n?: ?number): Array; + dropRight(array?: ?Array, n?: ?number): Array; + dropRightWhile(array?: ?Array, predicate?: ?Predicate): Array; + dropWhile(array?: ?Array, predicate?: ?Predicate): Array; fill( - array: ?Array, - value: U, - start?: number, - end?: number + array?: ?Array, + value?: ?U, + start?: ?number, + end?: ?number ): Array; findIndex( - array: ?$ReadOnlyArray, - predicate?: Predicate, - fromIndex?: number + array: $ReadOnlyArray, + predicate?: ?Predicate, + fromIndex?: ?number + ): number; + findIndex( + array: void | null, + predicate?: ?Predicate, + fromIndex?: ?number + ): -1; + findLastIndex( + array: $ReadOnlyArray, + predicate?: ?Predicate, + fromIndex?: ?number ): number; findLastIndex( - array: ?$ReadOnlyArray, - predicate?: Predicate, - fromIndex?: number - ): number; + array: void | null, + predicate?: ?Predicate, + fromIndex?: ?number + ): -1; // alias of _.head - first(array: ?Array): T; - flatten(array: Array | X>): Array; - flattenDeep(array: any[]): Array; - flattenDepth(array: any[], depth?: number): any[]; - fromPairs(pairs: Array<[A, B]>): { [key: A]: B }; - head(array: ?Array): T; - indexOf(array: ?Array, value: T, fromIndex?: number): number; + first(array: ?$ReadOnlyArray): T; + flatten(array?: ?Array | X>): Array; + flattenDeep(array?: ?(any[])): Array; + flattenDepth(array?: ?(any[]), depth?: ?number): any[]; + fromPairs(pairs?: ?Array<[A, B]>): { [key: A]: B }; + head(array: ?$ReadOnlyArray): T; + indexOf(array: Array, value: T, fromIndex?: number): number; + indexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; initial(array: ?Array): Array; - intersection(...arrays: Array>): Array; + intersection(...arrays?: Array<$ReadOnlyArray>): Array; //Workaround until (...parameter: T, parameter2: U) works - intersectionBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; intersectionBy( - a1: Array, - a2: Array, - iteratee?: ValueOnlyIteratee + a1?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee ): Array; intersectionBy( - a1: Array, - a2: Array, - a3: Array, - iteratee?: ValueOnlyIteratee + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee ): Array; intersectionBy( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - iteratee?: ValueOnlyIteratee + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + a3?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee + ): Array; + intersectionBy( + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + a3?: ?$ReadOnlyArray, + a4?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee ): Array; //Workaround until (...parameter: T, parameter2: U) works - intersectionWith(a1: Array, comparator: Comparator): Array; intersectionWith( - a1: Array, - a2: Array, - comparator: Comparator + a1?: ?$ReadOnlyArray, + comparator?: ?Comparator ): Array; intersectionWith( - a1: Array, - a2: Array, - a3: Array, - comparator: Comparator + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + comparator?: ?Comparator ): Array; intersectionWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, - comparator: Comparator + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + a3?: ?$ReadOnlyArray, + comparator?: ?Comparator ): Array; - join(array: ?Array, separator?: string): string; - last(array: ?Array): T; - lastIndexOf(array: ?Array, value: T, fromIndex?: number): number; - nth(array: T[], n?: number): T; - pull(array: ?Array, ...values?: Array): Array; - pullAll(array: ?Array, values: Array): Array; + intersectionWith( + a1?: ?$ReadOnlyArray, + a2?: ?$ReadOnlyArray, + a3?: ?$ReadOnlyArray, + a4?: ?$ReadOnlyArray, + comparator?: ?Comparator + ): Array; + join(array: Array, separator?: ?string): string; + join(array: void | null, separator?: ?string): ""; + last(array: ?$ReadOnlyArray): T; + lastIndexOf(array: Array, value?: ?T, fromIndex?: ?number): number; + lastIndexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; + nth(array: T[], n?: ?number): T; + nth(array: void | null, n?: ?number): void; + pull(array: Array, ...values?: Array): Array; + pull(array: T, ...values?: Array): T; + pullAll(array: Array, values?: ?Array): Array; + pullAll(array: T, values?: ?Array): T; pullAllBy( - array: ?Array, - values: Array, - iteratee?: ValueOnlyIteratee + array: Array, + values?: ?Array, + iteratee?: ?ValueOnlyIteratee ): Array; - pullAllWith(array?: T[], values: T[], comparator?: Function): T[]; - pullAt(array: ?Array, ...indexed?: Array): Array; - pullAt(array: ?Array, indexed?: Array): Array; - remove(array: ?Array, predicate?: Predicate): Array; - reverse(array: ?Array): Array; - slice(array: ?Array, start?: number, end?: number): Array; - sortedIndex(array: ?Array, value: T): number; + pullAllBy( + array: T, + values?: ?Array, + iteratee?: ?ValueOnlyIteratee + ): T; + pullAllWith(array: T[], values?: ?(T[]), comparator?: ?Function): T[]; + pullAllWith( + array: T, + values?: ?Array, + comparator?: ?Function + ): T; + pullAt(array?: ?Array, ...indexed?: Array): Array; + pullAt(array?: ?Array, indexed?: ?Array): Array; + remove(array?: ?Array, predicate?: ?Predicate): Array; + reverse(array: Array): Array; + reverse(array: T): T; + slice( + array?: ?$ReadOnlyArray, + start?: ?number, + end?: ?number + ): Array; + sortedIndex(array: Array, value: T): number; + sortedIndex(array: void | null, value: ?T): 0; sortedIndexBy( - array: ?Array, - value: T, - iteratee?: ValueOnlyIteratee + array: Array, + value?: ?T, + iteratee?: ?ValueOnlyIteratee ): number; - sortedIndexOf(array: ?Array, value: T): number; - sortedLastIndex(array: ?Array, value: T): number; + sortedIndexBy( + array: void | null, + value?: ?T, + iteratee?: ?ValueOnlyIteratee + ): 0; + sortedIndexOf(array: Array, value: T): number; + sortedIndexOf(array: void | null, value?: ?T): -1; + sortedLastIndex(array: Array, value: T): number; + sortedLastIndex(array: void | null, value?: ?T): 0; sortedLastIndexBy( - array: ?Array, + array: Array, value: T, iteratee?: ValueOnlyIteratee ): number; - sortedLastIndexOf(array: ?Array, value: T): number; - sortedUniq(array: ?Array): Array; - sortedUniqBy(array: ?Array, iteratee?: (value: T) => mixed): Array; - tail(array: ?Array): Array; - take(array: ?Array, n?: number): Array; - takeRight(array: ?Array, n?: number): Array; - takeRightWhile(array: ?Array, predicate?: Predicate): Array; - takeWhile(array: ?Array, predicate?: Predicate): Array; - union(...arrays?: Array>): Array; + sortedLastIndexBy( + array: void | null, + value?: ?T, + iteratee?: ?ValueOnlyIteratee + ): 0; + sortedLastIndexOf(array: Array, value: T): number; + sortedLastIndexOf(array: void | null, value?: ?T): -1; + sortedUniq(array?: ?Array): Array; + sortedUniqBy( + array?: ?Array, + iteratee?: ?ValueOnlyIteratee + ): Array; + tail(array?: ?Array): Array; + take(array?: ?Array, n?: ?number): Array; + takeRight(array?: ?Array, n?: ?number): Array; + takeRightWhile(array?: ?Array, predicate?: ?Predicate): Array; + takeWhile(array?: ?Array, predicate?: ?Predicate): Array; + union(...arrays?: Array<$ReadOnlyArray>): Array; //Workaround until (...parameter: T, parameter2: U) works - unionBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; unionBy( - a1: Array, - a2: Array, + a1?: ?$ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee + ): Array; + unionBy( + a1?: ?$ReadOnlyArray, + a2: $ReadOnlyArray, iteratee?: ValueOnlyIteratee ): Array; unionBy( - a1: Array, - a2: Array, - a3: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, iteratee?: ValueOnlyIteratee ): Array; unionBy( - a1: Array, - a2: Array, - a3: Array, - a4: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, + a4: $ReadOnlyArray, iteratee?: ValueOnlyIteratee ): Array; //Workaround until (...parameter: T, parameter2: U) works - unionWith(a1: Array, comparator?: Comparator): Array; + unionWith(a1?: ?Array, comparator?: ?Comparator): Array; unionWith( - a1: Array, - a2: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, comparator?: Comparator ): Array; unionWith( - a1: Array, - a2: Array, - a3: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, comparator?: Comparator ): Array; unionWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, + a4: $ReadOnlyArray, comparator?: Comparator ): Array; - uniq(array: ?Array): Array; - uniqBy(array: ?Array, iteratee?: ValueOnlyIteratee): Array; - uniqWith(array: ?Array, comparator?: Comparator): Array; - unzip(array: ?Array): Array; - unzipWith(array: ?Array, iteratee?: Iteratee): Array; - without(array: ?Array, ...values?: Array): Array; + uniq(array?: ?Array): Array; + uniqBy(array?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; + uniqWith(array?: ?Array, comparator?: ?Comparator): Array; + unzip(array?: ?Array): Array; + unzipWith(array: ?Array, iteratee?: ?Iteratee): Array; + without(array?: ?$ReadOnlyArray, ...values?: Array): Array; xor(...array: Array>): Array; //Workaround until (...parameter: T, parameter2: U) works - xorBy(a1: Array, iteratee?: ValueOnlyIteratee): Array; + xorBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; xorBy( a1: Array, a2: Array, @@ -395,7 +463,7 @@ declare module "lodash" { iteratee?: ValueOnlyIteratee ): Array; //Workaround until (...parameter: T, parameter2: U) works - xorWith(a1: Array, comparator?: Comparator): Array; + xorWith(a1?: ?Array, comparator?: ?Comparator): Array; xorWith( a1: Array, a2: Array, @@ -414,7 +482,7 @@ declare module "lodash" { a4: Array, comparator?: Comparator ): Array; - zip(a1: A[], a2: B[]): Array<[A, B]>; + zip(a1?: ?(A[]), a2?: ?(B[])): Array<[A, B]>; zip(a1: A[], a2: B[], a3: C[]): Array<[A, B, C]>; zip(a1: A[], a2: B[], a3: C[], a4: D[]): Array<[A, B, C, D]>; zip( @@ -425,105 +493,145 @@ declare module "lodash" { a5: E[] ): Array<[A, B, C, D, E]>; - zipObject(props?: Array, values?: Array): { [key: K]: V }; - zipObjectDeep(props?: any[], values?: any): Object; - //Workaround until (...parameter: T, parameter2: U) works - zipWith(a1: NestedArray, iteratee?: Iteratee): Array; - zipWith( - a1: NestedArray, - a2: NestedArray, - iteratee?: Iteratee + zipObject(props: Array, values?: ?Array): { [key: K]: V }; + zipObject(props: void | null, values?: ?Array): {}; + zipObjectDeep(props: any[], values?: ?any): Object; + zipObjectDeep(props: void | null, values?: ?any): {}; + + zipWith(a1?: ?Array): Array<[A]>; + zipWith(a1: Array, iteratee: (A) => T): Array; + + zipWith(a1: Array, a2: Array): Array<[A, B]>; + zipWith( + a1: Array, + a2: Array, + iteratee: (A, B) => T ): Array; - zipWith( - a1: NestedArray, - a2: NestedArray, - a3: NestedArray, - iteratee?: Iteratee + + zipWith( + a1: Array, + a2: Array, + a3: Array + ): Array<[A, B, C]>; + zipWith( + a1: Array, + a2: Array, + a3: Array, + iteratee: (A, B, C) => T ): Array; - zipWith( - a1: NestedArray, - a2: NestedArray, - a3: NestedArray, - a4: NestedArray, - iteratee?: Iteratee + + zipWith( + a1: Array, + a2: Array, + a3: Array, + a4: Array + ): Array<[A, B, C, D]>; + zipWith( + a1: Array, + a2: Array, + a3: Array, + a4: Array, + iteratee: (A, B, C, D) => T ): Array; // Collection - countBy(array: ?Array, iteratee?: ValueOnlyIteratee): Object; - countBy(object: T, iteratee?: ValueOnlyIteratee): Object; + countBy(array: Array, iteratee?: ?ValueOnlyIteratee): Object; + countBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; + countBy(object: T, iteratee?: ?ValueOnlyIteratee): Object; // alias of _.forEach - each(array: ?Array, iteratee?: Iteratee): Array; - each(object: T, iteratee?: OIteratee): T; + each(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; + each(array: T, iteratee?: ?Iteratee): T; + each(object: T, iteratee?: ?OIteratee): T; // alias of _.forEachRight - eachRight(array: ?Array, iteratee?: Iteratee): Array; + eachRight(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; + eachRight(array: T, iteratee?: ?Iteratee): T; eachRight(object: T, iteratee?: OIteratee): T; - every(array: ?Array, iteratee?: Iteratee): boolean; + every(array?: ?$ReadOnlyArray, iteratee?: ?Iteratee): boolean; every(object: T, iteratee?: OIteratee): boolean; - filter(array: ?Array, predicate?: Predicate): Array; - filter( + filter(array?: ?$ReadOnlyArray, predicate?: ?Predicate): Array; + filter( object: T, predicate?: OPredicate ): Array; find( - array: ?$ReadOnlyArray, - predicate?: Predicate, - fromIndex?: number + array: $ReadOnlyArray, + predicate?: ?Predicate, + fromIndex?: ?number ): T | void; - find( + find( + array: void | null, + predicate?: ?Predicate, + fromIndex?: ?number + ): void; + find( object: T, predicate?: OPredicate, fromIndex?: number ): V; findLast( array: ?$ReadOnlyArray, - predicate?: Predicate, - fromIndex?: number + predicate?: ?Predicate, + fromIndex?: ?number ): T | void; - findLast( + findLast( object: T, - predicate?: OPredicate + predicate?: ?OPredicate ): V; - flatMap(array: ?Array, iteratee?: FlatMapIteratee): Array; + flatMap( + array?: ?$ReadOnlyArray, + iteratee?: ?FlatMapIteratee + ): Array; flatMap( object: T, iteratee?: OFlatMapIteratee ): Array; flatMapDeep( - array: ?Array, - iteratee?: FlatMapIteratee + array?: ?$ReadOnlyArray, + iteratee?: ?FlatMapIteratee ): Array; flatMapDeep( object: T, - iteratee?: OFlatMapIteratee + iteratee?: ?OFlatMapIteratee ): Array; flatMapDepth( - array: ?Array, - iteratee?: FlatMapIteratee, - depth?: number + array?: ?Array, + iteratee?: ?FlatMapIteratee, + depth?: ?number ): Array; flatMapDepth( object: T, iteratee?: OFlatMapIteratee, depth?: number ): Array; - forEach(array: ?Array, iteratee?: Iteratee): Array; - forEach(object: T, iteratee?: OIteratee): T; - forEachRight(array: ?Array, iteratee?: Iteratee): Array; - forEachRight(object: T, iteratee?: OIteratee): T; + forEach(array: $ReadOnlyArray, iteratee?: ?Iteratee): Array; + forEach(array: T, iteratee?: ?Iteratee): T; + forEach(object: T, iteratee?: ?OIteratee): T; + forEachRight( + array: $ReadOnlyArray, + iteratee?: ?Iteratee + ): Array; + forEachRight(array: T, iteratee?: ?Iteratee): T; + forEachRight(object: T, iteratee?: ?OIteratee): T; groupBy( - array: ?Array, - iteratee?: ValueOnlyIteratee + array: $ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee ): { [key: V]: Array }; - groupBy( + groupBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; + groupBy( object: T, iteratee?: ValueOnlyIteratee ): { [key: V]: Array }; - includes(array: ?Array, value: T, fromIndex?: number): boolean; + includes( + array: $ReadOnlyArray, + value: T, + fromIndex?: ?number + ): boolean; + includes(array: void | null, value?: ?T, fromIndex?: ?number): false; includes(object: T, value: any, fromIndex?: number): boolean; includes(str: string, value: string, fromIndex?: number): boolean; invokeMap( - array: ?Array, - path: ((value: T) => Array | string) | Array | string, + array?: ?$ReadOnlyArray, + path?: ?((value: T) => Array | string) | Array | string, ...args?: Array ): Array; invokeMap( @@ -532,14 +640,19 @@ declare module "lodash" { ...args?: Array ): Array; keyBy( - array: ?Array, - iteratee?: ValueOnlyIteratee - ): { [key: V]: ?T }; + array: $ReadOnlyArray, + iteratee?: ?ValueOnlyIteratee + ): { [key: V]: T }; + keyBy(array: void | null, iteratee?: ?ValueOnlyIteratee<*>): {}; keyBy( object: T, - iteratee?: ValueOnlyIteratee - ): { [key: V]: ?A }; - map(array: ?Array, iteratee?: MapIterator): Array; + iteratee?: ?ValueOnlyIteratee + ): { [key: V]: A }; + map(array?: ?Array, iteratee?: ?MapIterator): Array; + map( + array: ?$ReadOnlyArray, + iteratee?: ReadOnlyMapIterator + ): Array; map( object: ?T, iteratee?: OMapIterator @@ -549,25 +662,30 @@ declare module "lodash" { iteratee?: (char: string, index: number, str: string) => any ): string; orderBy( - array: ?Array, - iteratees?: Array> | string, - orders?: Array<"asc" | "desc"> | string + array: $ReadOnlyArray, + iteratees?: ?$ReadOnlyArray> | ?string, + orders?: ?$ReadOnlyArray<"asc" | "desc"> | ?string + ): Array; + orderBy( + array: null | void, + iteratees?: ?$ReadOnlyArray> | ?string, + orders?: ?$ReadOnlyArray<"asc" | "desc"> | ?string ): Array; orderBy( object: T, - iteratees?: Array> | string, - orders?: Array<"asc" | "desc"> | string + iteratees?: $ReadOnlyArray> | string, + orders?: $ReadOnlyArray<"asc" | "desc"> | string ): Array; partition( - array: ?Array, - predicate?: Predicate + array?: ?Array, + predicate?: ?Predicate ): [Array, Array]; - partition( + partition( object: T, predicate?: OPredicate ): [Array, Array]; reduce( - array: ?Array, + array: $ReadOnlyArray, iteratee?: ( accumulator: U, value: T, @@ -576,50 +694,80 @@ declare module "lodash" { ) => U, accumulator?: U ): U; + reduce( + array: void | null, + iteratee?: ?( + accumulator: U, + value: T, + index: number, + array: ?Array + ) => U, + accumulator?: ?U + ): void | null; reduce( object: T, iteratee?: (accumulator: U, value: any, key: string, object: T) => U, accumulator?: U ): U; reduceRight( - array: ?Array, - iteratee?: ( + array: void | null, + iteratee?: ?( accumulator: U, value: T, index: number, array: ?Array ) => U, - accumulator?: U + accumulator?: ?U + ): void | null; + reduceRight( + array: $ReadOnlyArray, + iteratee?: ?( + accumulator: U, + value: T, + index: number, + array: ?Array + ) => U, + accumulator?: ?U ): U; reduceRight( object: T, - iteratee?: (accumulator: U, value: any, key: string, object: T) => U, - accumulator?: U + iteratee?: ?(accumulator: U, value: any, key: string, object: T) => U, + accumulator?: ?U ): U; - reject(array: ?Array, predicate?: Predicate): Array; - reject( - object: T, - predicate?: OPredicate + reject(array: ?$ReadOnlyArray, predicate?: Predicate): Array; + reject( + object?: ?T, + predicate?: ?OPredicate ): Array; sample(array: ?Array): T; sample(object: T): V; - sampleSize(array: ?Array, n?: number): Array; + sampleSize(array?: ?Array, n?: ?number): Array; sampleSize(object: T, n?: number): Array; shuffle(array: ?Array): Array; shuffle(object: T): Array; - size(collection: Array | Object): number; - some(array: ?Array, predicate?: Predicate): boolean; - some( + size(collection: $ReadOnlyArray | Object | string): number; + some(array: ?$ReadOnlyArray, predicate?: Predicate): boolean; + some(array: void | null, predicate?: ?Predicate): false; + some( object?: ?T, predicate?: OPredicate ): boolean; - sortBy(array: ?Array, ...iteratees?: Array>): Array; - sortBy(array: ?Array, iteratees?: Array>): Array; + sortBy( + array: ?$ReadOnlyArray, + ...iteratees?: $ReadOnlyArray> + ): Array; + sortBy( + array: ?$ReadOnlyArray, + iteratees?: $ReadOnlyArray> + ): Array; sortBy( object: T, ...iteratees?: Array> ): Array; - sortBy(object: T, iteratees?: Array>): Array; + sortBy( + object: T, + iteratees?: $ReadOnlyArray> + ): Array; // Date now(): number; @@ -629,19 +777,19 @@ declare module "lodash" { ary(func: Function, n?: number): Function; before(n: number, fn: Function): Function; bind(func: Function, thisArg: any, ...partials: Array): Function; - bindKey(obj: Object, key: string, ...partials: Array): Function; + bindKey(obj?: ?Object, key?: ?string, ...partials?: Array): Function; curry: Curry; curry(func: Function, arity?: number): Function; curryRight(func: Function, arity?: number): Function; debounce(func: F, wait?: number, options?: DebounceOptions): F; - defer(func: Function, ...args?: Array): number; - delay(func: Function, wait: number, ...args?: Array): number; + defer(func: Function, ...args?: Array): TimeoutID; + delay(func: Function, wait: number, ...args?: Array): TimeoutID; flip(func: Function): Function; memoize(func: F, resolver?: Function): F; negate(predicate: Function): Function; once(func: Function): Function; - overArgs(func: Function, ...transforms: Array): Function; - overArgs(func: Function, transforms: Array): Function; + overArgs(func?: ?Function, ...transforms?: Array): Function; + overArgs(func?: ?Function, transforms?: ?Array): Function; partial(func: Function, ...partials: any[]): Function; partialRight(func: Function, ...partials: Array): Function; partialRight(func: Function, partials: Array): Function; @@ -655,7 +803,7 @@ declare module "lodash" { options?: ThrottleOptions ): Function; unary(func: Function): Function; - wrap(value: any, wrapper: Function): Function; + wrap(value?: any, wrapper?: ?Function): Function; // Lang castArray(value: *): any[]; @@ -676,21 +824,31 @@ declare module "lodash" { eq(value: any, other: any): boolean; gt(value: any, other: any): boolean; gte(value: any, other: any): boolean; + isArguments(value: void | null): false; isArguments(value: any): boolean; - isArray(value: any): boolean; - isArrayBuffer(value: any): boolean; - isArrayLike(value: any): boolean; - isArrayLikeObject(value: any): boolean; - isBoolean(value: any): boolean; + isArray(value: Array): true; + isArray(value: any): false; + isArrayBuffer(value: ArrayBuffer): true; + isArrayBuffer(value: any): false; + isArrayLike(value: Array | string | { length: number }): true; + isArrayLike(value: any): false; + isArrayLikeObject(value: { length: number } | Array): true; + isArrayLikeObject(value: any): false; + isBoolean(value: boolean): true; + isBoolean(value: any): false; + isBuffer(value: void | null): false; isBuffer(value: any): boolean; - isDate(value: any): boolean; - isElement(value: any): boolean; + isDate(value: Date): true; + isDate(value: any): false; + isElement(value: Element): true; + isElement(value: any): false; + isEmpty(value: void | null | "" | {} | [] | number | boolean): true; isEmpty(value: any): boolean; isEqual(value: any, other: any): boolean; isEqualWith( - value: T, - other: U, - customizer?: ( + value?: ?T, + other?: ?U, + customizer?: ?( objValue: any, otherValue: any, key: number | string, @@ -699,18 +857,23 @@ declare module "lodash" { stack: any ) => boolean | void ): boolean; - isError(value: any): boolean; - isFinite(value: any): boolean; + isError(value: Error): true; + isError(value: any): false; + isFinite(value: number): boolean; + isFinite(value: any): false; isFunction(value: Function): true; - isFunction(value: number | string | void | null | Object): false; - isInteger(value: any): boolean; + isFunction(value: any): false; + isInteger(value: number): boolean; + isInteger(value: any): false; + isLength(value: void | null): false; isLength(value: any): boolean; - isMap(value: any): boolean; - isMatch(object?: ?Object, source: Object): boolean; + isMap(value: Map): true; + isMap(value: any): false; + isMatch(object?: ?Object, source?: ?Object): boolean; isMatchWith( - object: T, - source: U, - customizer?: ( + object?: ?T, + source?: ?U, + customizer?: ?( objValue: any, srcValue: any, key: number | string, @@ -718,35 +881,55 @@ declare module "lodash" { source: U ) => boolean | void ): boolean; - isNaN(value: any): boolean; + isNaN(value: number): boolean; + isNaN(value: any): false; + isNative(value: number | string | void | null | Object): false; isNative(value: any): boolean; - isNil(value: any): boolean; - isNull(value: any): boolean; - isNumber(value: any): boolean; - isObject(value: any): boolean; + isNil(value: void | null): true; + isNil(value: any): false; + isNull(value: null): true; + isNull(value: any): false; + isNumber(value: number): true; + isNumber(value: any): false; + isObject(value: Object): true; + isObject(value: any): false; + isObjectLike(value: void | null): false; isObjectLike(value: any): boolean; - isPlainObject(value: any): boolean; - isRegExp(value: any): boolean; - isSafeInteger(value: any): boolean; - isSet(value: any): boolean; + isPlainObject(value: Object): true; + isPlainObject(value: any): false; + isRegExp(value: RegExp): true; + isRegExp(value: any): false; + isSafeInteger(value: number): boolean; + isSafeInteger(value: any): false; + isSet(value: Set): true; + isSet(value: any): false; isString(value: string): true; - isString( - value: number | boolean | Function | void | null | Object | Array - ): false; - isSymbol(value: any): boolean; - isTypedArray(value: any): boolean; - isUndefined(value: any): boolean; - isWeakMap(value: any): boolean; - isWeakSet(value: any): boolean; + isString(value: any): false; + isSymbol(value: Symbol): true; + isSymbol(value: any): false; + isTypedArray(value: $TypedArray): true; + isTypedArray(value: any): false; + isUndefined(value: void): true; + isUndefined(value: any): false; + isWeakMap(value: WeakMap): true; + isWeakMap(value: any): false; + isWeakSet(value: WeakSet): true; + isWeakSet(value: any): false; lt(value: any, other: any): boolean; lte(value: any, other: any): boolean; toArray(value: any): Array; + toFinite(value: void | null): 0; toFinite(value: any): number; + toInteger(value: void | null): 0; toInteger(value: any): number; + toLength(value: void | null): 0; toLength(value: any): number; + toNumber(value: void | null): 0; toNumber(value: any): number; toPlainObject(value: any): Object; + toSafeInteger(value: void | null): 0; toSafeInteger(value: any): number; + toString(value: void | null): ""; toString(value: any): string; // Math @@ -755,11 +938,11 @@ declare module "lodash" { divide(dividend: number, divisor: number): number; floor(number: number, precision?: number): number; max(array: ?Array): T; - maxBy(array: ?Array, iteratee?: Iteratee): T; + maxBy(array: ?$ReadOnlyArray, iteratee?: Iteratee): T; mean(array: Array<*>): number; meanBy(array: Array, iteratee?: Iteratee): number; min(array: ?Array): T; - minBy(array: ?Array, iteratee?: Iteratee): T; + minBy(array: ?$ReadOnlyArray, iteratee?: Iteratee): T; multiply(multiplier: number, multiplicand: number): number; round(number: number, precision?: number): number; subtract(minuend: number, subtrahend: number): number; @@ -767,16 +950,19 @@ declare module "lodash" { sumBy(array: Array, iteratee?: Iteratee): number; // number - clamp(number: number, lower?: number, upper: number): number; + clamp(number?: number, lower?: ?number, upper?: ?number): number; + clamp(number: ?number, lower?: ?number, upper?: ?number): 0; inRange(number: number, start?: number, end: number): boolean; random(lower?: number, upper?: number, floating?: boolean): number; // Object - assign(object?: ?Object, ...sources?: Array): Object; + assign(object?: ?Object, ...sources?: Array): Object; + assignIn(): {}; assignIn(a: A, b: B): A & B; assignIn(a: A, b: B, c: C): A & B & C; assignIn(a: A, b: B, c: C, d: D): A & B & C & D; assignIn(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E; + assignInWith(): {}; assignInWith( object: T, s1: A, @@ -827,6 +1013,7 @@ declare module "lodash" { source: A | B | C | D ) => any | void ): Object; + assignWith(): {}; assignWith( object: T, s1: A, @@ -879,23 +1066,24 @@ declare module "lodash" { ): Object; at(object?: ?Object, ...paths: Array): Array; at(object?: ?Object, paths: Array): Array; - create(prototype: T, properties?: Object): $Supertype; - defaults(object?: ?Object, ...sources?: Array): Object; - defaultsDeep(object?: ?Object, ...sources?: Array): Object; + create(prototype: T, properties: Object): $Supertype; + create(prototype: any, properties: void | null): {}; + defaults(object?: ?Object, ...sources?: Array): Object; + defaultsDeep(object?: ?Object, ...sources?: Array): Object; // alias for _.toPairs entries(object?: ?Object): Array<[string, any]>; // alias for _.toPairsIn entriesIn(object?: ?Object): Array<[string, any]>; // alias for _.assignIn - extend(a: A, b: B): A & B; + extend(a?: ?A, b?: ?B): A & B; extend(a: A, b: B, c: C): A & B & C; extend(a: A, b: B, c: C, d: D): A & B & C & D; extend(a: A, b: B, c: C, d: D, e: E): A & B & C & D & E; // alias for _.assignInWith extendWith( - object: T, - s1: A, - customizer?: ( + object?: ?T, + s1?: ?A, + customizer?: ?( objValue: any, srcValue: any, key: string, @@ -942,29 +1130,47 @@ declare module "lodash" { source: A | B | C | D ) => any | void ): Object; - findKey( - object?: ?T, - predicate?: OPredicate + findKey( + object: T, + predicate?: ?OPredicate ): string | void; - findLastKey( - object?: ?T, - predicate?: OPredicate + findKey( + object: void | null, + predicate?: ?OPredicate + ): void; + findLastKey( + object: T, + predicate?: ?OPredicate ): 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; + findLastKey( + object: void | null, + predicate?: ?OPredicate + ): void; + forIn(object: Object, iteratee?: ?OIteratee<*>): Object; + forIn(object: void | null, iteratee?: ?OIteratee<*>): null; + forInRight(object: Object, iteratee?: ?OIteratee<*>): Object; + forInRight(object: void | null, iteratee?: ?OIteratee<*>): null; + forOwn(object: Object, iteratee?: ?OIteratee<*>): Object; + forOwn(object: void | null, iteratee?: ?OIteratee<*>): null; + forOwnRight(object: Object, iteratee?: ?OIteratee<*>): Object; + forOwnRight(object: void | null, iteratee?: ?OIteratee<*>): null; functions(object?: ?Object): Array; functionsIn(object?: ?Object): Array; get( - object?: ?Object | ?Array, - path?: ?Array | string, + object?: ?Object | ?$ReadOnlyArray | void | null, + path?: ?$ReadOnlyArray | string | number, defaultValue?: any ): any; - has(object?: ?Object, path?: ?Array | string): boolean; - hasIn(object?: ?Object, path?: ?Array | string): boolean; - invert(object?: ?Object, multiVal?: boolean): Object; - invertBy(object: ?Object, iteratee?: Function): Object; + has(object: Object, path: Array | string): boolean; + has(object: Object, path: void | null): false; + has(object: void | null, path?: ?Array | ?string): false; + hasIn(object: Object, path: Array | string): boolean; + hasIn(object: Object, path: void | null): false; + hasIn(object: void | null, path?: ?Array | ?string): false; + invert(object: Object, multiVal?: ?boolean): Object; + invert(object: void | null, multiVal?: ?boolean): {}; + invertBy(object: Object, iteratee?: ?Function): Object; + invertBy(object: void | null, iteratee?: ?Function): {}; invoke( object?: ?Object, path?: ?Array | string, @@ -973,9 +1179,12 @@ declare module "lodash" { keys(object?: ?{ [key: K]: any }): Array; keys(object?: ?Object): Array; keysIn(object?: ?Object): Array; - mapKeys(object?: ?Object, iteratee?: OIteratee<*>): Object; - mapValues(object?: ?Object, iteratee?: OIteratee<*>): Object; + mapKeys(object: Object, iteratee?: ?OIteratee<*>): Object; + mapKeys(object: void | null, iteratee?: ?OIteratee<*>): {}; + mapValues(object: Object, iteratee?: ?OIteratee<*>): Object; + mapValues(object: void | null, iteratee?: ?OIteratee<*>): {}; merge(object?: ?Object, ...sources?: Array): Object; + mergeWith(): {}; mergeWith( object: T, customizer?: ( @@ -1027,43 +1236,73 @@ declare module "lodash" { ): Object; omit(object?: ?Object, ...props: Array): Object; omit(object?: ?Object, props: Array): Object; - omitBy( - object?: ?T, - predicate?: OPredicate + omitBy( + object: T, + predicate?: ?OPredicate ): Object; + omitBy(object: void | null, predicate?: ?OPredicate): {}; pick(object?: ?Object, ...props: Array): Object; pick(object?: ?Object, props: Array): Object; - pickBy( - object?: ?T, - predicate?: OPredicate + pickBy( + object: T, + predicate?: ?OPredicate ): Object; + pickBy(object: void | null, predicate?: ?OPredicate): {}; result( object?: ?Object, path?: ?Array | string, defaultValue?: any ): any; - set(object?: ?Object, path?: ?Array | string, value: any): Object; + set(object: Object, path?: ?Array | string, value: any): Object; + set( + object: T, + path?: ?Array | string, + value?: ?any + ): T; setWith( object: T, path?: ?Array | string, value: any, customizer?: (nsValue: any, key: string, nsObject: T) => any ): Object; + setWith( + object: T, + path?: ?Array | string, + value?: ?any, + customizer?: ?(nsValue: any, key: string, nsObject: T) => any + ): T; toPairs(object?: ?Object | Array<*>): Array<[string, any]>; toPairsIn(object?: ?Object): Array<[string, any]>; transform( - collection: Object | Array, - iteratee?: OIteratee<*>, + collection: Object | $ReadOnlyArray, + iteratee?: ?OIteratee<*>, accumulator?: any ): any; - unset(object?: ?Object, path?: ?Array | string): boolean; + transform( + collection: void | null, + iteratee?: ?OIteratee<*>, + accumulator?: ?any + ): {}; + unset(object: Object, path?: ?Array | ?string): boolean; + unset(object: void | null, path?: ?Array | ?string): true; update(object: Object, path: string[] | string, updater: Function): Object; + update( + object: T, + path?: ?(string[]) | ?string, + updater?: ?Function + ): T; updateWith( object: Object, - path: string[] | string, - updater: Function, - customizer?: Function + path?: ?(string[]) | ?string, + updater?: ?Function, + customizer?: ?Function ): Object; + updateWith( + object: T, + path?: ?(string[]) | ?string, + updater?: ?Function, + customizer?: ?Function + ): T; values(object?: ?Object): Array; valuesIn(object?: ?Object): Array; @@ -1076,51 +1315,83 @@ declare module "lodash" { // TODO: _.prototype.* // 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; + camelCase(string: string): string; + camelCase(string: void | null): ""; + capitalize(string: string): string; + capitalize(string: void | null): ""; + deburr(string: string): string; + deburr(string: void | null): ""; + endsWith(string: string, target?: string, position?: ?number): boolean; + endsWith(string: void | null, target?: ?string, position?: ?number): false; + escape(string: string): string; + escape(string: void | null): ""; + escapeRegExp(string: string): string; + escapeRegExp(string: void | null): ""; + kebabCase(string: string): string; + kebabCase(string: void | null): ""; + lowerCase(string: string): string; + lowerCase(string: void | null): ""; + lowerFirst(string: string): string; + lowerFirst(string: void | null): ""; + 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; + repeat(string: void | null, n?: ?number): ""; replace( - string?: string, + string: string, pattern: RegExp | string, replacement: ((string: string) => string) | string ): string; - snakeCase(string?: string): string; + replace( + string: void | null, + pattern?: ?RegExp | ?string, + replacement: ?((string: string) => string) | ?string + ): ""; + snakeCase(string: string): string; + snakeCase(string: void | null): ""; split( - string?: string, - separator: RegExp | string, - limit?: number + string?: ?string, + separator?: ?RegExp | ?string, + limit?: ?number ): Array; - 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; + startCase(string: string): string; + startCase(string: void | null): ""; + startsWith(string: string, target?: string, position?: number): boolean; + startsWith( + string: void | null, + target?: ?string, + position?: ?number + ): false; + template(string?: ?string, options?: ?TemplateSettings): Function; + toLower(string: string): string; + toLower(string: void | null): ""; + toUpper(string: string): string; + toUpper(string: void | null): ""; + trim(string: string, chars?: string): string; + trim(string: void | null, chars?: ?string): ""; + trimEnd(string: string, chars?: ?string): string; + trimEnd(string: void | null, chars?: ?string): ""; + trimStart(string: string, chars?: ?string): string; + trimStart(string: void | null, chars?: ?string): ""; + truncate(string: string, options?: TruncateOptions): string; + truncate(string: void | null, options?: ?TruncateOptions): ""; + unescape(string: string): string; + unescape(string: void | null): ""; + upperCase(string: string): string; + upperCase(string: void | null): ""; + upperFirst(string: string): string; + upperFirst(string: void | null): ""; + words(string?: ?string, pattern?: ?RegExp | ?string): Array; // Util attempt(func: Function, ...args: Array): any; - bindAll(object?: ?Object, methodNames: Array): Object; - bindAll(object?: ?Object, ...methodNames: Array): Object; - cond(pairs: NestedArray): Function; - conforms(source: Object): Function; + bindAll(object: Object, methodNames?: ?Array): Object; + bindAll(object: T, methodNames?: ?Array): T; + bindAll(object: Object, ...methodNames: Array): Object; + cond(pairs?: ?NestedArray): Function; + conforms(source?: ?Object): Function; constant(value: T): () => T; defaultTo( value: T1, @@ -1129,13 +1400,11 @@ declare module "lodash" { // NaN is a number instead of its own type, otherwise it would behave like null/void defaultTo(value: T1, defaultValue: T2): T1 | T2; defaultTo(value: T1, defaultValue: T2): T2; - flow: $ComposeReverse; - flow(funcs?: Array): Function; - flowRight: $Compose; - flowRight(funcs?: Array): Function; + flow: $ComposeReverse & ((funcs: Array) => Function); + flowRight: $Compose & ((funcs: Array) => Function); identity(value: T): T; iteratee(func?: any): Function; - matches(source: Object): Function; + matches(source?: ?Object): Function; matchesProperty(path?: ?Array | string, srcValue: any): Function; method(path?: ?Array | string, ...args?: Array): Function; methodOf(object?: ?Object, ...args?: Array): Function; @@ -1146,7 +1415,7 @@ declare module "lodash" { ): T; noConflict(): Lodash; noop(...args: Array): void; - nthArg(n?: number): Function; + nthArg(n?: ?number): Function; over(...iteratees: Array): Function; over(iteratees: Array): Function; overEvery(...predicates: Array): Function; @@ -1157,19 +1426,19 @@ declare module "lodash" { propertyOf(object?: ?Object): Function; range(start: number, end: number, step?: number): Array; range(end: number, step?: number): Array; - rangeRight(start: number, end: number, step?: number): Array; - rangeRight(end: number, step?: number): Array; - runInContext(context?: Object): Function; + rangeRight(start?: ?number, end?: ?number, step?: ?number): Array; + rangeRight(end?: ?number, step?: ?number): Array; + runInContext(context?: ?Object): Function; stubArray(): Array<*>; stubFalse(): false; stubObject(): {}; stubString(): ""; stubTrue(): true; - times(n: number, ...rest: Array): Array; + times(n?: ?number, ...rest?: Array): Array; times(n: number, iteratee: (i: number) => T): Array; toPath(value: any): Array; - uniqueId(prefix?: string): string; + uniqueId(prefix?: ?string): string; // Properties VERSION: string; @@ -1379,7 +1648,7 @@ declare module "lodash/fp" { // Array chunk(size: number): (array: Array) => Array>; chunk(size: number, array: Array): Array>; - compact(array: Array): Array; + compact(array?: ?$ReadOnlyArray): Array; concat | T, B: Array | U>( base: A ): (elements: B) => Array; @@ -1387,30 +1656,34 @@ declare module "lodash/fp" { base: A, elements: B ): Array; - difference(values: Array): (array: Array) => Array; - difference(values: Array, array: Array): Array; + difference(values: $ReadOnlyArray): (array: $ReadOnlyArray) => T[]; + difference(values: $ReadOnlyArray, array: $ReadOnlyArray): T[]; differenceBy( iteratee: ValueOnlyIteratee - ): ((values: Array) => (array: Array) => T[]) & - ((values: Array, array: Array) => T[]); + ): ((values: $ReadOnlyArray) => (array: $ReadOnlyArray) => T[]) & + ((values: $ReadOnlyArray, array: $ReadOnlyArray) => T[]); differenceBy( iteratee: ValueOnlyIteratee, - values: Array - ): (array: Array) => T[]; + values: $ReadOnlyArray + ): (array: $ReadOnlyArray) => T[]; differenceBy( iteratee: ValueOnlyIteratee, - values: Array, - array: Array + values: $ReadOnlyArray, + array: $ReadOnlyArray ): T[]; differenceWith( - values: T[] - ): ((comparator: Comparator) => (array: T[]) => T[]) & - ((comparator: Comparator, array: T[]) => T[]); - differenceWith( - values: T[], comparator: Comparator - ): (array: T[]) => T[]; - differenceWith(values: T[], comparator: Comparator, array: T[]): T[]; + ): ((first: $ReadOnly) => (second: $ReadOnly) => T[]) & + ((first: $ReadOnly, second: $ReadOnly) => T[]); + differenceWith( + comparator: Comparator, + first: $ReadOnly + ): (second: $ReadOnly) => T[]; + differenceWith( + comparator: Comparator, + first: $ReadOnly, + second: $ReadOnly + ): T[]; drop(n: number): (array: Array) => Array; drop(n: number, array: Array): Array; dropLast(n: number): (array: Array) => Array; @@ -1480,14 +1753,14 @@ declare module "lodash/fp" { array: $ReadOnlyArray ): number; // alias of _.head - first(array: Array): T; + first(array: $ReadOnlyArray): T; flatten(array: Array | X>): Array; unnest(array: Array | X>): Array; flattenDeep(array: any[]): Array; flattenDepth(depth: number): (array: any[]) => any[]; flattenDepth(depth: number, array: any[]): any[]; fromPairs(pairs: Array<[A, B]>): { [key: A]: B }; - head(array: Array): T; + head(array: $ReadOnlyArray): T; indexOf(value: T): (array: Array) => number; indexOf(value: T, array: Array): number; indexOfFrom( @@ -1611,10 +1884,7 @@ declare module "lodash/fp" { sortedLastIndexOf(value: T): (array: Array) => number; sortedLastIndexOf(value: T, array: Array): number; sortedUniq(array: Array): Array; - sortedUniqBy( - iteratee: (value: T) => mixed - ): (array: Array) => Array; - sortedUniqBy(iteratee: (value: T) => mixed, array: Array): Array; + sortedUniqBy(iteratee: ValueOnlyIteratee, array: Array): Array; tail(array: Array): Array; take(n: number): (array: Array) => Array; take(n: number, array: Array): Array; @@ -1751,25 +2021,25 @@ declare module "lodash/fp" { // alias of _.forEach each( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; each( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; // alias of _.forEachRight eachRight( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; eachRight( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; every( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => boolean; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => boolean; every( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): boolean; all( iteratee: Iteratee | OIteratee @@ -1780,10 +2050,10 @@ declare module "lodash/fp" { ): boolean; filter( predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; filter( predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; find( predicate: Predicate | OPredicate @@ -1866,29 +2136,31 @@ declare module "lodash/fp" { ): Array; forEach( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; forEach( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; forEachRight( iteratee: Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; forEachRight( iteratee: Iteratee | OIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; groupBy( iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [key: V]: Array }; + ): ( + collection: $ReadOnlyArray | { [id: any]: T } + ) => { [key: V]: Array }; groupBy( iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): { [key: V]: Array }; - includes(value: string): (str: string) => boolean; - includes(value: string, str: string): boolean; includes(value: T): (collection: Array | { [id: any]: T }) => boolean; includes(value: T, collection: Array | { [id: any]: T }): boolean; + includes(value: string): (str: string) => boolean; + includes(value: string, str: string): boolean; contains(value: string): (str: string) => boolean; contains(value: string, str: string): boolean; contains(value: T): (collection: Array | { [id: any]: T }) => boolean; @@ -1935,24 +2207,24 @@ declare module "lodash/fp" { ): Array; keyBy( iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [key: V]: T }; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => { [key: V]: T }; keyBy( iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): { [key: V]: T }; indexBy( iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [key: V]: T }; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => { [key: V]: T }; indexBy( iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): { [key: V]: T }; map( iteratee: MapIterator | OMapIterator - ): (collection: Array | { [id: any]: T }) => Array; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; map( iteratee: MapIterator | OMapIterator, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): Array; map(iteratee: (char: string) => any): (str: string) => string; map(iteratee: (char: string) => any, str: string): string; @@ -1966,22 +2238,22 @@ declare module "lodash/fp" { pluck(iteratee: (char: string) => any): (str: string) => string; pluck(iteratee: (char: string) => any, str: string): string; orderBy( - iteratees: Array | OIteratee<*>> | string + iteratees: $ReadOnlyArray | OIteratee<*>> | string ): (( - orders: Array<"asc" | "desc"> | string - ) => (collection: Array | { [id: any]: T }) => Array) & + orders: $ReadOnlyArray<"asc" | "desc"> | string + ) => (collection: $ReadOnlyArray | { [id: any]: T }) => Array) & (( - orders: Array<"asc" | "desc"> | string, - collection: Array | { [id: any]: T } + orders: $ReadOnlyArray<"asc" | "desc"> | string, + collection: $ReadOnlyArray | { [id: any]: T } ) => Array); orderBy( - iteratees: Array | OIteratee<*>> | string, - orders: Array<"asc" | "desc"> | string - ): (collection: Array | { [id: any]: T }) => Array; + iteratees: $ReadOnlyArray | OIteratee<*>> | string, + orders: $ReadOnlyArray<"asc" | "desc"> | string + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; orderBy( - iteratees: Array | OIteratee<*>> | string, - orders: Array<"asc" | "desc"> | string, - collection: Array | { [id: any]: T } + iteratees: $ReadOnlyArray | OIteratee<*>> | string, + orders: $ReadOnlyArray<"asc" | "desc"> | string, + collection: $ReadOnlyArray | { [id: any]: T } ): Array; partition( predicate: Predicate | OPredicate @@ -2029,27 +2301,33 @@ declare module "lodash/fp" { ): (collection: Array | { [id: any]: T }) => Array; sampleSize(n: number, collection: Array | { [id: any]: T }): Array; shuffle(collection: Array | { [id: any]: T }): Array; - size(collection: Array | Object): number; + size(collection: $ReadOnlyArray | Object | string): number; some( predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => boolean; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => boolean; some( predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): boolean; any( predicate: Predicate | OPredicate - ): (collection: Array | { [id: any]: T }) => boolean; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => boolean; any( predicate: Predicate | OPredicate, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): boolean; sortBy( - iteratees: Array | OIteratee> | Iteratee | OIteratee - ): (collection: Array | { [id: any]: T }) => Array; + iteratees: + | $ReadOnlyArray | OIteratee> + | Iteratee + | OIteratee + ): (collection: $ReadOnlyArray | { [id: any]: T }) => Array; sortBy( - iteratees: Array | OIteratee> | Iteratee | OIteratee, - collection: Array | { [id: any]: T } + iteratees: + | $ReadOnlyArray | OIteratee> + | Iteratee + | OIteratee, + collection: $ReadOnlyArray | { [id: any]: T } ): Array; // Date @@ -2075,9 +2353,9 @@ declare module "lodash/fp" { curryRightN(arity: number, func: Function): Function; debounce(wait: number): (func: F) => F; debounce(wait: number, func: F): F; - defer(func: Function): number; - delay(wait: number): (func: Function) => number; - delay(wait: number, func: Function): number; + defer(func: Function): TimeoutID; + delay(wait: number): (func: Function) => TimeoutID; + delay(wait: number, func: Function): TimeoutID; flip(func: Function): Function; memoize(func: F): F; negate(predicate: Function): Function; @@ -2256,9 +2534,7 @@ declare module "lodash/fp" { isSafeInteger(value: any): boolean; isSet(value: any): boolean; isString(value: string): true; - isString( - value: number | boolean | Function | void | null | Object | Array - ): false; + isString(value: any): false; isSymbol(value: any): boolean; isTypedArray(value: any): boolean; isUndefined(value: any): boolean; @@ -2518,8 +2794,13 @@ declare module "lodash/fp" { forOwnRight(iteratee: OIteratee<*>, object: Object): Object; functions(object: Object): Array; functionsIn(object: Object): Array; - get(path: Array | string): (object: Object | Array) => any; - get(path: Array | string, object: Object | Array): any; + get( + path: $ReadOnlyArray | string | number + ): (object: Object | $ReadOnlyArray | void | null) => any; + get( + path: $ReadOnlyArray | string | number, + object: Object | $ReadOnlyArray | void | null + ): any; prop(path: Array | string): (object: Object | Array) => any; prop(path: Array | string, object: Object | Array): any; path(path: Array | string): (object: Object | Array) => any; @@ -2529,15 +2810,18 @@ declare module "lodash/fp" { ): (( path: Array | string ) => (object: Object | Array) => any) & - ((path: Array | string, object: Object | Array) => any); + (( + path: Array | string, + object: Object | $ReadOnlyArray | void | null + ) => any); getOr( defaultValue: any, path: Array | string - ): (object: Object | Array) => any; + ): (object: Object | $ReadOnlyArray | void | null) => any; getOr( defaultValue: any, path: Array | string, - object: Object | Array + object: Object | $ReadOnlyArray | void | null ): any; propOr( defaultValue: any @@ -2718,23 +3002,25 @@ declare module "lodash/fp" { toPairsIn(object: Object): Array<[string, any]>; transform( iteratee: OIteratee<*> - ): ((accumulator: any) => (collection: Object | Array) => any) & - ((accumulator: any, collection: Object | Array) => any); + ): (( + accumulator: any + ) => (collection: Object | $ReadOnlyArray) => any) & + ((accumulator: any, collection: Object | $ReadOnlyArray) => any); transform( iteratee: OIteratee<*>, accumulator: any - ): (collection: Object | Array) => any; + ): (collection: Object | $ReadOnlyArray) => any; transform( iteratee: OIteratee<*>, accumulator: any, - collection: Object | Array + collection: Object | $ReadOnlyArray ): any; - unset(path: Array | string): (object: Object) => boolean; - unset(path: Array | string, object: Object): boolean; - dissoc(path: Array | string): (object: Object) => boolean; - dissoc(path: Array | string, object: Object): boolean; - dissocPath(path: Array | string): (object: Object) => boolean; - dissocPath(path: Array | string, object: Object): boolean; + unset(path: Array | string): (object: Object) => Object; + unset(path: Array | string, object: Object): Object; + dissoc(path: Array | string): (object: Object) => Object; + dissoc(path: Array | string, object: Object): Object; + dissocPath(path: Array | string): (object: Object) => Object; + dissocPath(path: Array | string, object: Object): Object; update( path: string[] | string ): ((updater: Function) => (object: Object) => Object) & @@ -2880,13 +3166,10 @@ declare module "lodash/fp" { defaultTo(defaultValue: T2, value: T1): T1 | T2; defaultTo(defaultValue: T2): (value: T1) => T2; defaultTo(defaultValue: T2, value: T1): T2; - flow: $ComposeReverse; - flow(funcs: Array): Function; - pipe: $ComposeReverse; - pipe(funcs: Array): Function; - flowRight: $Compose; - flowRight(funcs: Array): Function; - compose: $Compose; + flow: $ComposeReverse & ((funcs: Array) => Function); + pipe: $ComposeReverse & ((funcs: Array) => Function); + flowRight: $Compose & ((funcs: Array) => Function); + compose: $Compose & ((funcs: Array) => Function); compose(funcs: Array): Function; identity(value: T): T; iteratee(func: any): Function; @@ -4205,3 +4488,1596 @@ declare module "lodash/toPath" { declare module "lodash/uniqueId" { declare module.exports: $PropertyType<$Exports<"lodash">, "uniqueId">; } + +declare module "lodash/fp/chunk" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "chunk">; +} + +declare module "lodash/fp/compact" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "compact">; +} + +declare module "lodash/fp/concat" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "concat">; +} + +declare module "lodash/fp/difference" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "difference">; +} + +declare module "lodash/fp/differenceBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "differenceBy">; +} + +declare module "lodash/fp/differenceWith" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "differenceWith" + >; +} + +declare module "lodash/fp/drop" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "drop">; +} + +declare module "lodash/fp/dropLast" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropLast">; +} + +declare module "lodash/fp/dropRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropRight">; +} + +declare module "lodash/fp/dropRightWhile" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "dropRightWhile" + >; +} + +declare module "lodash/fp/dropWhile" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropWhile">; +} + +declare module "lodash/fp/dropLastWhile" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dropLastWhile">; +} + +declare module "lodash/fp/fill" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "fill">; +} + +declare module "lodash/fp/findIndex" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findIndex">; +} + +declare module "lodash/fp/findIndexFrom" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findIndexFrom">; +} + +declare module "lodash/fp/findLastIndex" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLastIndex">; +} + +declare module "lodash/fp/findLastIndexFrom" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "findLastIndexFrom" + >; +} + +declare module "lodash/fp/first" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "first">; +} + +declare module "lodash/fp/flatten" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flatten">; +} + +declare module "lodash/fp/unnest" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unnest">; +} + +declare module "lodash/fp/flattenDeep" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flattenDeep">; +} + +declare module "lodash/fp/flattenDepth" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flattenDepth">; +} + +declare module "lodash/fp/fromPairs" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "fromPairs">; +} + +declare module "lodash/fp/head" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "head">; +} + +declare module "lodash/fp/indexOf" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "indexOf">; +} + +declare module "lodash/fp/indexOfFrom" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "indexOfFrom">; +} + +declare module "lodash/fp/initial" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "initial">; +} + +declare module "lodash/fp/init" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "init">; +} + +declare module "lodash/fp/intersection" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "intersection">; +} + +declare module "lodash/fp/intersectionBy" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "intersectionBy" + >; +} + +declare module "lodash/fp/intersectionWith" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "intersectionWith" + >; +} + +declare module "lodash/fp/join" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "join">; +} + +declare module "lodash/fp/last" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "last">; +} + +declare module "lodash/fp/lastIndexOf" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lastIndexOf">; +} + +declare module "lodash/fp/lastIndexOfFrom" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "lastIndexOfFrom" + >; +} + +declare module "lodash/fp/nth" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "nth">; +} + +declare module "lodash/fp/pull" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pull">; +} + +declare module "lodash/fp/pullAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pullAll">; +} + +declare module "lodash/fp/pullAllBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pullAllBy">; +} + +declare module "lodash/fp/pullAllWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pullAllWith">; +} + +declare module "lodash/fp/pullAt" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pullAt">; +} + +declare module "lodash/fp/remove" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "remove">; +} + +declare module "lodash/fp/reverse" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "reverse">; +} + +declare module "lodash/fp/slice" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "slice">; +} + +declare module "lodash/fp/sortedIndex" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedIndex">; +} + +declare module "lodash/fp/sortedIndexBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedIndexBy">; +} + +declare module "lodash/fp/sortedIndexOf" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedIndexOf">; +} + +declare module "lodash/fp/sortedLastIndex" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "sortedLastIndex" + >; +} + +declare module "lodash/fp/sortedLastIndexBy" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "sortedLastIndexBy" + >; +} + +declare module "lodash/fp/sortedLastIndexOf" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "sortedLastIndexOf" + >; +} + +declare module "lodash/fp/sortedUniq" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedUniq">; +} + +declare module "lodash/fp/sortedUniqBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortedUniqBy">; +} + +declare module "lodash/fp/tail" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "tail">; +} + +declare module "lodash/fp/take" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "take">; +} + +declare module "lodash/fp/takeRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeRight">; +} + +declare module "lodash/fp/takeLast" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeLast">; +} + +declare module "lodash/fp/takeRightWhile" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "takeRightWhile" + >; +} + +declare module "lodash/fp/takeLastWhile" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeLastWhile">; +} + +declare module "lodash/fp/takeWhile" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "takeWhile">; +} + +declare module "lodash/fp/union" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "union">; +} + +declare module "lodash/fp/unionBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unionBy">; +} + +declare module "lodash/fp/unionWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unionWith">; +} + +declare module "lodash/fp/uniq" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "uniq">; +} + +declare module "lodash/fp/uniqBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "uniqBy">; +} + +declare module "lodash/fp/uniqWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "uniqWith">; +} + +declare module "lodash/fp/unzip" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unzip">; +} + +declare module "lodash/fp/unzipWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unzipWith">; +} + +declare module "lodash/fp/without" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "without">; +} + +declare module "lodash/fp/xor" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "xor">; +} + +declare module "lodash/fp/symmetricDifference" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "symmetricDifference" + >; +} + +declare module "lodash/fp/xorBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "xorBy">; +} + +declare module "lodash/fp/symmetricDifferenceBy" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "symmetricDifferenceBy" + >; +} + +declare module "lodash/fp/xorWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "xorWith">; +} + +declare module "lodash/fp/symmetricDifferenceWith" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "symmetricDifferenceWith" + >; +} + +declare module "lodash/fp/zip" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zip">; +} + +declare module "lodash/fp/zipAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipAll">; +} + +declare module "lodash/fp/zipObject" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipObject">; +} + +declare module "lodash/fp/zipObj" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipObj">; +} + +declare module "lodash/fp/zipObjectDeep" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipObjectDeep">; +} + +declare module "lodash/fp/zipWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "zipWith">; +} + +declare module "lodash/fp/countBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "countBy">; +} + +declare module "lodash/fp/each" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "each">; +} + +declare module "lodash/fp/eachRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "eachRight">; +} + +declare module "lodash/fp/every" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "every">; +} + +declare module "lodash/fp/all" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "all">; +} + +declare module "lodash/fp/filter" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "filter">; +} + +declare module "lodash/fp/find" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "find">; +} + +declare module "lodash/fp/findFrom" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findFrom">; +} + +declare module "lodash/fp/findLast" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLast">; +} + +declare module "lodash/fp/findLastFrom" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLastFrom">; +} + +declare module "lodash/fp/flatMap" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flatMap">; +} + +declare module "lodash/fp/flatMapDeep" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flatMapDeep">; +} + +declare module "lodash/fp/flatMapDepth" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flatMapDepth">; +} + +declare module "lodash/fp/forEach" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forEach">; +} + +declare module "lodash/fp/forEachRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forEachRight">; +} + +declare module "lodash/fp/groupBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "groupBy">; +} + +declare module "lodash/fp/includes" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "includes">; +} + +declare module "lodash/fp/contains" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "contains">; +} + +declare module "lodash/fp/includesFrom" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "includesFrom">; +} + +declare module "lodash/fp/invokeMap" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invokeMap">; +} + +declare module "lodash/fp/invokeArgsMap" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invokeArgsMap">; +} + +declare module "lodash/fp/keyBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "keyBy">; +} + +declare module "lodash/fp/indexBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "indexBy">; +} + +declare module "lodash/fp/map" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "map">; +} + +declare module "lodash/fp/pluck" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pluck">; +} + +declare module "lodash/fp/orderBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "orderBy">; +} + +declare module "lodash/fp/partition" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "partition">; +} + +declare module "lodash/fp/reduce" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "reduce">; +} + +declare module "lodash/fp/reduceRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "reduceRight">; +} + +declare module "lodash/fp/reject" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "reject">; +} + +declare module "lodash/fp/sample" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sample">; +} + +declare module "lodash/fp/sampleSize" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sampleSize">; +} + +declare module "lodash/fp/shuffle" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "shuffle">; +} + +declare module "lodash/fp/size" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "size">; +} + +declare module "lodash/fp/some" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "some">; +} + +declare module "lodash/fp/any" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "any">; +} + +declare module "lodash/fp/sortBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sortBy">; +} + +declare module "lodash/fp/now" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "now">; +} + +declare module "lodash/fp/after" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "after">; +} + +declare module "lodash/fp/ary" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "ary">; +} + +declare module "lodash/fp/nAry" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "nAry">; +} + +declare module "lodash/fp/before" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "before">; +} + +declare module "lodash/fp/bind" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "bind">; +} + +declare module "lodash/fp/bindKey" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "bindKey">; +} + +declare module "lodash/fp/curry" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "curry">; +} + +declare module "lodash/fp/curryN" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "curryN">; +} + +declare module "lodash/fp/curryRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "curryRight">; +} + +declare module "lodash/fp/curryRightN" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "curryRightN">; +} + +declare module "lodash/fp/debounce" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "debounce">; +} + +declare module "lodash/fp/defer" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defer">; +} + +declare module "lodash/fp/delay" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "delay">; +} + +declare module "lodash/fp/flip" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flip">; +} + +declare module "lodash/fp/memoize" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "memoize">; +} + +declare module "lodash/fp/negate" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "negate">; +} + +declare module "lodash/fp/complement" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "complement">; +} + +declare module "lodash/fp/once" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "once">; +} + +declare module "lodash/fp/overArgs" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "overArgs">; +} + +declare module "lodash/fp/useWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "useWith">; +} + +declare module "lodash/fp/partial" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "partial">; +} + +declare module "lodash/fp/partialRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "partialRight">; +} + +declare module "lodash/fp/rearg" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rearg">; +} + +declare module "lodash/fp/rest" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rest">; +} + +declare module "lodash/fp/unapply" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unapply">; +} + +declare module "lodash/fp/restFrom" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "restFrom">; +} + +declare module "lodash/fp/spread" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "spread">; +} + +declare module "lodash/fp/apply" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "apply">; +} + +declare module "lodash/fp/spreadFrom" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "spreadFrom">; +} + +declare module "lodash/fp/throttle" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "throttle">; +} + +declare module "lodash/fp/unary" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unary">; +} + +declare module "lodash/fp/wrap" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "wrap">; +} + +declare module "lodash/fp/castArray" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "castArray">; +} + +declare module "lodash/fp/clone" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "clone">; +} + +declare module "lodash/fp/cloneDeep" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "cloneDeep">; +} + +declare module "lodash/fp/cloneDeepWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "cloneDeepWith">; +} + +declare module "lodash/fp/cloneWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "cloneWith">; +} + +declare module "lodash/fp/conformsTo" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "conformsTo">; +} + +declare module "lodash/fp/where" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "where">; +} + +declare module "lodash/fp/conforms" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "conforms">; +} + +declare module "lodash/fp/eq" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "eq">; +} + +declare module "lodash/fp/identical" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "identical">; +} + +declare module "lodash/fp/gt" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "gt">; +} + +declare module "lodash/fp/gte" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "gte">; +} + +declare module "lodash/fp/isArguments" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArguments">; +} + +declare module "lodash/fp/isArray" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArray">; +} + +declare module "lodash/fp/isArrayBuffer" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArrayBuffer">; +} + +declare module "lodash/fp/isArrayLike" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isArrayLike">; +} + +declare module "lodash/fp/isArrayLikeObject" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "isArrayLikeObject" + >; +} + +declare module "lodash/fp/isBoolean" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isBoolean">; +} + +declare module "lodash/fp/isBuffer" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isBuffer">; +} + +declare module "lodash/fp/isDate" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isDate">; +} + +declare module "lodash/fp/isElement" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isElement">; +} + +declare module "lodash/fp/isEmpty" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isEmpty">; +} + +declare module "lodash/fp/isEqual" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isEqual">; +} + +declare module "lodash/fp/equals" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "equals">; +} + +declare module "lodash/fp/isEqualWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isEqualWith">; +} + +declare module "lodash/fp/isError" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isError">; +} + +declare module "lodash/fp/isFinite" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isFinite">; +} + +declare module "lodash/fp/isFunction" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isFunction">; +} + +declare module "lodash/fp/isInteger" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isInteger">; +} + +declare module "lodash/fp/isLength" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isLength">; +} + +declare module "lodash/fp/isMap" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isMap">; +} + +declare module "lodash/fp/isMatch" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isMatch">; +} + +declare module "lodash/fp/whereEq" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "whereEq">; +} + +declare module "lodash/fp/isMatchWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isMatchWith">; +} + +declare module "lodash/fp/isNaN" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNaN">; +} + +declare module "lodash/fp/isNative" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNative">; +} + +declare module "lodash/fp/isNil" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNil">; +} + +declare module "lodash/fp/isNull" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNull">; +} + +declare module "lodash/fp/isNumber" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isNumber">; +} + +declare module "lodash/fp/isObject" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isObject">; +} + +declare module "lodash/fp/isObjectLike" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isObjectLike">; +} + +declare module "lodash/fp/isPlainObject" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isPlainObject">; +} + +declare module "lodash/fp/isRegExp" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isRegExp">; +} + +declare module "lodash/fp/isSafeInteger" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isSafeInteger">; +} + +declare module "lodash/fp/isSet" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isSet">; +} + +declare module "lodash/fp/isString" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isString">; +} + +declare module "lodash/fp/isSymbol" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isSymbol">; +} + +declare module "lodash/fp/isTypedArray" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isTypedArray">; +} + +declare module "lodash/fp/isUndefined" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isUndefined">; +} + +declare module "lodash/fp/isWeakMap" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isWeakMap">; +} + +declare module "lodash/fp/isWeakSet" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "isWeakSet">; +} + +declare module "lodash/fp/lt" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lt">; +} + +declare module "lodash/fp/lte" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lte">; +} + +declare module "lodash/fp/toArray" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toArray">; +} + +declare module "lodash/fp/toFinite" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toFinite">; +} + +declare module "lodash/fp/toInteger" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toInteger">; +} + +declare module "lodash/fp/toLength" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toLength">; +} + +declare module "lodash/fp/toNumber" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toNumber">; +} + +declare module "lodash/fp/toPlainObject" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toPlainObject">; +} + +declare module "lodash/fp/toSafeInteger" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toSafeInteger">; +} + +declare module "lodash/fp/toString" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toString">; +} + +declare module "lodash/fp/add" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "add">; +} + +declare module "lodash/fp/ceil" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "ceil">; +} + +declare module "lodash/fp/divide" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "divide">; +} + +declare module "lodash/fp/floor" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "floor">; +} + +declare module "lodash/fp/max" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "max">; +} + +declare module "lodash/fp/maxBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "maxBy">; +} + +declare module "lodash/fp/mean" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mean">; +} + +declare module "lodash/fp/meanBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "meanBy">; +} + +declare module "lodash/fp/min" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "min">; +} + +declare module "lodash/fp/minBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "minBy">; +} + +declare module "lodash/fp/multiply" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "multiply">; +} + +declare module "lodash/fp/round" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "round">; +} + +declare module "lodash/fp/subtract" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "subtract">; +} + +declare module "lodash/fp/sum" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sum">; +} + +declare module "lodash/fp/sumBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "sumBy">; +} + +declare module "lodash/fp/clamp" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "clamp">; +} + +declare module "lodash/fp/inRange" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "inRange">; +} + +declare module "lodash/fp/random" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "random">; +} + +declare module "lodash/fp/assign" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assign">; +} + +declare module "lodash/fp/assignAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignAll">; +} + +declare module "lodash/fp/assignInAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignInAll">; +} + +declare module "lodash/fp/extendAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "extendAll">; +} + +declare module "lodash/fp/assignIn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignIn">; +} + +declare module "lodash/fp/assignInWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignInWith">; +} + +declare module "lodash/fp/assignWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignWith">; +} + +declare module "lodash/fp/assignInAllWith" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "assignInAllWith" + >; +} + +declare module "lodash/fp/extendAllWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "extendAllWith">; +} + +declare module "lodash/fp/assignAllWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assignAllWith">; +} + +declare module "lodash/fp/at" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "at">; +} + +declare module "lodash/fp/props" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "props">; +} + +declare module "lodash/fp/paths" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "paths">; +} + +declare module "lodash/fp/create" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "create">; +} + +declare module "lodash/fp/defaults" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaults">; +} + +declare module "lodash/fp/defaultsAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaultsAll">; +} + +declare module "lodash/fp/defaultsDeep" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaultsDeep">; +} + +declare module "lodash/fp/defaultsDeepAll" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "defaultsDeepAll" + >; +} + +declare module "lodash/fp/entries" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "entries">; +} + +declare module "lodash/fp/entriesIn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "entriesIn">; +} + +declare module "lodash/fp/extend" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "extend">; +} + +declare module "lodash/fp/extendWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "extendWith">; +} + +declare module "lodash/fp/findKey" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findKey">; +} + +declare module "lodash/fp/findLastKey" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "findLastKey">; +} + +declare module "lodash/fp/forIn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forIn">; +} + +declare module "lodash/fp/forInRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forInRight">; +} + +declare module "lodash/fp/forOwn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forOwn">; +} + +declare module "lodash/fp/forOwnRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "forOwnRight">; +} + +declare module "lodash/fp/functions" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "functions">; +} + +declare module "lodash/fp/functionsIn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "functionsIn">; +} + +declare module "lodash/fp/get" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "get">; +} + +declare module "lodash/fp/prop" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "prop">; +} + +declare module "lodash/fp/path" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "path">; +} + +declare module "lodash/fp/getOr" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "getOr">; +} + +declare module "lodash/fp/propOr" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "propOr">; +} + +declare module "lodash/fp/pathOr" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pathOr">; +} + +declare module "lodash/fp/has" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "has">; +} + +declare module "lodash/fp/hasIn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "hasIn">; +} + +declare module "lodash/fp/invert" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invert">; +} + +declare module "lodash/fp/invertObj" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invertObj">; +} + +declare module "lodash/fp/invertBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invertBy">; +} + +declare module "lodash/fp/invoke" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invoke">; +} + +declare module "lodash/fp/invokeArgs" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "invokeArgs">; +} + +declare module "lodash/fp/keys" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "keys">; +} + +declare module "lodash/fp/keysIn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "keysIn">; +} + +declare module "lodash/fp/mapKeys" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mapKeys">; +} + +declare module "lodash/fp/mapValues" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mapValues">; +} + +declare module "lodash/fp/merge" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "merge">; +} + +declare module "lodash/fp/mergeAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mergeAll">; +} + +declare module "lodash/fp/mergeWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mergeWith">; +} + +declare module "lodash/fp/mergeAllWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mergeAllWith">; +} + +declare module "lodash/fp/omit" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "omit">; +} + +declare module "lodash/fp/omitAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "omitAll">; +} + +declare module "lodash/fp/omitBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "omitBy">; +} + +declare module "lodash/fp/pick" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pick">; +} + +declare module "lodash/fp/pickAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pickAll">; +} + +declare module "lodash/fp/pickBy" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pickBy">; +} + +declare module "lodash/fp/result" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "result">; +} + +declare module "lodash/fp/set" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "set">; +} + +declare module "lodash/fp/assoc" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assoc">; +} + +declare module "lodash/fp/assocPath" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "assocPath">; +} + +declare module "lodash/fp/setWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "setWith">; +} + +declare module "lodash/fp/toPairs" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toPairs">; +} + +declare module "lodash/fp/toPairsIn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toPairsIn">; +} + +declare module "lodash/fp/transform" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "transform">; +} + +declare module "lodash/fp/unset" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unset">; +} + +declare module "lodash/fp/dissoc" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dissoc">; +} + +declare module "lodash/fp/dissocPath" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "dissocPath">; +} + +declare module "lodash/fp/update" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "update">; +} + +declare module "lodash/fp/updateWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "updateWith">; +} + +declare module "lodash/fp/values" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "values">; +} + +declare module "lodash/fp/valuesIn" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "valuesIn">; +} + +declare module "lodash/fp/tap" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "tap">; +} + +declare module "lodash/fp/thru" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "thru">; +} + +declare module "lodash/fp/camelCase" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "camelCase">; +} + +declare module "lodash/fp/capitalize" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "capitalize">; +} + +declare module "lodash/fp/deburr" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "deburr">; +} + +declare module "lodash/fp/endsWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "endsWith">; +} + +declare module "lodash/fp/escape" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "escape">; +} + +declare module "lodash/fp/escapeRegExp" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "escapeRegExp">; +} + +declare module "lodash/fp/kebabCase" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "kebabCase">; +} + +declare module "lodash/fp/lowerCase" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lowerCase">; +} + +declare module "lodash/fp/lowerFirst" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "lowerFirst">; +} + +declare module "lodash/fp/pad" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pad">; +} + +declare module "lodash/fp/padChars" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padChars">; +} + +declare module "lodash/fp/padEnd" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padEnd">; +} + +declare module "lodash/fp/padCharsEnd" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padCharsEnd">; +} + +declare module "lodash/fp/padStart" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padStart">; +} + +declare module "lodash/fp/padCharsStart" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "padCharsStart">; +} + +declare module "lodash/fp/parseInt" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "parseInt">; +} + +declare module "lodash/fp/repeat" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "repeat">; +} + +declare module "lodash/fp/replace" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "replace">; +} + +declare module "lodash/fp/snakeCase" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "snakeCase">; +} + +declare module "lodash/fp/split" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "split">; +} + +declare module "lodash/fp/startCase" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "startCase">; +} + +declare module "lodash/fp/startsWith" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "startsWith">; +} + +declare module "lodash/fp/template" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "template">; +} + +declare module "lodash/fp/toLower" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toLower">; +} + +declare module "lodash/fp/toUpper" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toUpper">; +} + +declare module "lodash/fp/trim" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trim">; +} + +declare module "lodash/fp/trimChars" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimChars">; +} + +declare module "lodash/fp/trimEnd" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimEnd">; +} + +declare module "lodash/fp/trimCharsEnd" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimCharsEnd">; +} + +declare module "lodash/fp/trimStart" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "trimStart">; +} + +declare module "lodash/fp/trimCharsStart" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "trimCharsStart" + >; +} + +declare module "lodash/fp/truncate" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "truncate">; +} + +declare module "lodash/fp/unescape" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "unescape">; +} + +declare module "lodash/fp/upperCase" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "upperCase">; +} + +declare module "lodash/fp/upperFirst" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "upperFirst">; +} + +declare module "lodash/fp/words" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "words">; +} + +declare module "lodash/fp/attempt" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "attempt">; +} + +declare module "lodash/fp/bindAll" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "bindAll">; +} + +declare module "lodash/fp/cond" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "cond">; +} + +declare module "lodash/fp/constant" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "constant">; +} + +declare module "lodash/fp/always" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "always">; +} + +declare module "lodash/fp/defaultTo" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "defaultTo">; +} + +declare module "lodash/fp/flow" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flow">; +} + +declare module "lodash/fp/pipe" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pipe">; +} + +declare module "lodash/fp/flowRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "flowRight">; +} + +declare module "lodash/fp/compose" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "compose">; +} + +declare module "lodash/fp/identity" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "identity">; +} + +declare module "lodash/fp/iteratee" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "iteratee">; +} + +declare module "lodash/fp/matches" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "matches">; +} + +declare module "lodash/fp/matchesProperty" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "matchesProperty" + >; +} + +declare module "lodash/fp/propEq" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "propEq">; +} + +declare module "lodash/fp/pathEq" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "pathEq">; +} + +declare module "lodash/fp/method" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "method">; +} + +declare module "lodash/fp/methodOf" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "methodOf">; +} + +declare module "lodash/fp/mixin" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "mixin">; +} + +declare module "lodash/fp/noConflict" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "noConflict">; +} + +declare module "lodash/fp/noop" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "noop">; +} + +declare module "lodash/fp/nthArg" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "nthArg">; +} + +declare module "lodash/fp/over" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "over">; +} + +declare module "lodash/fp/juxt" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "juxt">; +} + +declare module "lodash/fp/overEvery" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "overEvery">; +} + +declare module "lodash/fp/allPass" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "allPass">; +} + +declare module "lodash/fp/overSome" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "overSome">; +} + +declare module "lodash/fp/anyPass" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "anyPass">; +} + +declare module "lodash/fp/property" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "property">; +} + +declare module "lodash/fp/propertyOf" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "propertyOf">; +} + +declare module "lodash/fp/range" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "range">; +} + +declare module "lodash/fp/rangeStep" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rangeStep">; +} + +declare module "lodash/fp/rangeRight" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "rangeRight">; +} + +declare module "lodash/fp/rangeStepRight" { + declare module.exports: $PropertyType< + $Exports<"lodash/fp">, + "rangeStepRight" + >; +} + +declare module "lodash/fp/runInContext" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "runInContext">; +} + +declare module "lodash/fp/stubArray" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubArray">; +} + +declare module "lodash/fp/stubFalse" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubFalse">; +} + +declare module "lodash/fp/F" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "F">; +} + +declare module "lodash/fp/stubObject" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubObject">; +} + +declare module "lodash/fp/stubString" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubString">; +} + +declare module "lodash/fp/stubTrue" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "stubTrue">; +} + +declare module "lodash/fp/T" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "T">; +} + +declare module "lodash/fp/times" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "times">; +} + +declare module "lodash/fp/toPath" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "toPath">; +} + +declare module "lodash/fp/uniqueId" { + declare module.exports: $PropertyType<$Exports<"lodash/fp">, "uniqueId">; +} diff --git a/package.json b/package.json index f1325ce00..da7cb6cec 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,7 @@ "eslint-plugin-prettier": "^2.4.0", "eslint-plugin-react": "^7.5.1", "eslint-plugin-relay": "^0.0.20", - "flow-bin": "^0.76.0", + "flow-bin": "^0.84.0", "glob": "^7.1.2", "jest": "^23.6.0", "prettier": "1.13.6", diff --git a/src/plugins/layout/index.js b/src/plugins/layout/index.js index 0ccfd0ade..5486f735d 100644 --- a/src/plugins/layout/index.js +++ b/src/plugins/layout/index.js @@ -107,6 +107,7 @@ type TrackArgs = {| type SearchResultTree = {| id: string, isMatch: Boolean, + hasChildren: boolean, children: ?Array, element: Element, axElement: Element, @@ -476,11 +477,13 @@ export default class Layout extends FlipperPlugin { }); } - getElementsFromSearchResultTree(tree: ?SearchResultTree) { + getElementsFromSearchResultTree( + tree: ?SearchResultTree, + ): Array { if (!tree) { return []; } - var elements = [ + let elements = [ { id: tree.id, isMatch: tree.isMatch, diff --git a/src/ui/components/ErrorBoundary.js b/src/ui/components/ErrorBoundary.js index ed5f888dd..f77a19788 100644 --- a/src/ui/components/ErrorBoundary.js +++ b/src/ui/components/ErrorBoundary.js @@ -75,7 +75,7 @@ export default class ErrorBoundary extends Component< ); } else { - return this.props.children; + return this.props.children || null; } } } diff --git a/src/ui/components/data-inspector/DataDescription.js b/src/ui/components/data-inspector/DataDescription.js index 90e35393b..a7b6c8c48 100644 --- a/src/ui/components/data-inspector/DataDescription.js +++ b/src/ui/components/data-inspector/DataDescription.js @@ -9,7 +9,7 @@ import type {DataInspectorSetValue} from './DataInspector.js'; import {PureComponent} from 'react'; import styled from '../../styled/index.js'; import {SketchPicker} from 'react-color'; -import {Component} from 'react'; +import {Component, Fragment} from 'react'; import Popover from '../Popover.js'; import {colors} from '../colors.js'; import Input from '../Input.js'; @@ -294,7 +294,7 @@ class ColorEditor extends Component<{ render() { const colorInfo = parseColor(this.props.value); if (!colorInfo) { - return; + return ; } return ( diff --git a/src/ui/components/data-inspector/DataInspector.js b/src/ui/components/data-inspector/DataInspector.js index 8b8e00c5b..db5cc19b5 100644 --- a/src/ui/components/data-inspector/DataInspector.js +++ b/src/ui/components/data-inspector/DataInspector.js @@ -464,7 +464,7 @@ export default class DataInspector extends Component { } } - let propertyNodesContainer; + let propertyNodesContainer = null; if (isExpandable && isExpanded) { const propertyNodes = []; @@ -532,7 +532,7 @@ export default class DataInspector extends Component { if (typeof name !== 'undefined') { nameElems.push( {name} diff --git a/yarn.lock b/yarn.lock index c248bf7c1..6303cacb3 100644 --- a/yarn.lock +++ b/yarn.lock @@ -2803,9 +2803,10 @@ flat-cache@^1.2.1: graceful-fs "^4.1.2" write "^0.2.1" -flow-bin@^0.76.0: - version "0.76.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.76.0.tgz#eb00036991c3abc106743fcbc7ee321f02aa4faa" +flow-bin@^0.84.0: + version "0.84.0" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.84.0.tgz#4cb2364c750fb37a7840524fa62456b53f64cdcb" + integrity sha512-ocji8eEYp+YfICsm+F6cIHUcD7v5sb0/ADEXm6gyUKdjQzmSckMrPUdZtyfP973t3YGHKliUMxMvIBHyR5LbXQ== flow-parser@^0.*: version "0.81.0"