diff --git a/flow-typed/npm/@babel/register_v7.x.x.js b/flow-typed/npm/@babel/register_v7.x.x.js index b7daeaf..e856208 100644 --- a/flow-typed/npm/@babel/register_v7.x.x.js +++ b/flow-typed/npm/@babel/register_v7.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5934458d8287c23337a0363563a548f9 -// flow-typed version: b77688cf5d/@babel/register_v7.x.x/flow_>=v0.30.x +// flow-typed signature: 8edf110ca1bb8fbab9799180b38a18e7 +// flow-typed version: c6154227d1/@babel/register_v7.x.x/flow_>=v0.30.x <=v0.103.x  declare module '@babel/register' { declare type Ignore = boolean | string | RegExp | (filename: string) => boolean; diff --git a/flow-typed/npm/@material-ui/icons_v4.x.x.js b/flow-typed/npm/@material-ui/icons_v4.x.x.js index 7c91858..4d76f75 100644 --- a/flow-typed/npm/@material-ui/icons_v4.x.x.js +++ b/flow-typed/npm/@material-ui/icons_v4.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 66df4cff499954f9bea8665541b6e71d -// flow-typed version: aa652b5114/@material-ui/icons_v4.x.x/flow_>=v0.69.x +// flow-typed signature: da8e44dbc4004144d5a185b9899be18a +// flow-typed version: c6154227d1/@material-ui/icons_v4.x.x/flow_>=v0.69.x <=v0.103.x  /* * Created and maintained: https://github.com/retyui diff --git a/flow-typed/npm/@storybook/react_v5.x.x.js b/flow-typed/npm/@storybook/react_v5.x.x.js index 682c493..bcebcf9 100644 --- a/flow-typed/npm/@storybook/react_v5.x.x.js +++ b/flow-typed/npm/@storybook/react_v5.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 68ee88c520cb9bb70866d8812664bc7b -// flow-typed version: 00c3a083ad/@storybook/react_v5.x.x/flow_>=v0.72.x +// flow-typed signature: ba7b3e320c38100b7c295e0e500f5d05 +// flow-typed version: c6154227d1/@storybook/react_v5.x.x/flow_>=v0.72.x <=v0.103.x  type NodeModule = typeof module;  diff --git a/flow-typed/npm/clsx_v1.x.x.js b/flow-typed/npm/clsx_v1.x.x.js index 19148fc..2a0f475 100644 --- a/flow-typed/npm/clsx_v1.x.x.js +++ b/flow-typed/npm/clsx_v1.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5e68c4df1fc585166155388fcdbb9128 -// flow-typed version: e8047e772a/clsx_v1.x.x/flow_>=v0.30.x +// flow-typed signature: a308ee846065c917580dc7cab3584bb5 +// flow-typed version: c6154227d1/clsx_v1.x.x/flow_>=v0.30.x <=v0.103.x  declare module 'clsx' { declare type Classes =  diff --git a/flow-typed/npm/flow-bin_v0.x.x.js b/flow-typed/npm/flow-bin_v0.x.x.js index c538e20..72f9667 100644 --- a/flow-typed/npm/flow-bin_v0.x.x.js +++ b/flow-typed/npm/flow-bin_v0.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 6a5610678d4b01e13bbfbbc62bdaf583 -// flow-typed version: 3817bc6980/flow-bin_v0.x.x/flow_>=v0.25.x +// flow-typed signature: 4e6a5da3290fe9ea49e6bcdced64f358 +// flow-typed version: c6154227d1/flow-bin_v0.x.x/flow_>=v0.25.x <=v0.103.x  declare module "flow-bin" { declare module.exports: string; diff --git a/flow-typed/npm/jest_v24.x.x.js b/flow-typed/npm/jest_v24.x.x.js index a3fe958..833c6b7 100644 --- a/flow-typed/npm/jest_v24.x.x.js +++ b/flow-typed/npm/jest_v24.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 06581ed8183c695a253980a047dc1b60 -// flow-typed version: 038675f680/jest_v24.x.x/flow_>=v0.39.x +// flow-typed signature: 5ca11cd33b6292e9edcb4855292572f1 +// flow-typed version: 7afca48d86/jest_v24.x.x/flow_>=v0.61.x <=v0.103.x  type JestMockFn, TReturn> = { (...args: TArguments): TReturn, @@ -331,6 +331,12 @@ type JestExtendedMatchersType = { */ toIncludeAnyMembers(members: any[]): void,  + /** + * Use `.toIncludeSameMembers` when checking if two arrays contain equal values, in any order. + * @param {Array.<*>} members + */ + toIncludeSameMembers(members: any[]): void, + /** * Use `.toSatisfyAll` when you want to use a custom matcher by supplying a predicate function that returns a `Boolean` for all values in an array. * @param {Function} predicate @@ -568,13 +574,35 @@ type JestExtendedMatchersType = { toIncludeMultiple(substring: string[]): void, };  +// Diffing snapshot utility for Jest (snapshot-diff) +// https://github.com/jest-community/snapshot-diff +type SnapshotDiffType = { + /** + * Compare the difference between the actual in the `expect()` + * vs the object inside `valueB` with some extra options. + */ + toMatchDiffSnapshot( + valueB: any, + options?: {| + expand?: boolean; + colors?: boolean; + contextLines?: number; + stablePatchmarks?: boolean; + aAnnotation?: string; + bAnnotation?: string; + |}, + testName?: string + ): void, +} + interface JestExpectType { not: JestExpectType & EnzymeMatchersType & DomTestingLibraryType & JestJQueryMatchersType & JestStyledComponentsMatchersType & - JestExtendedMatchersType; + JestExtendedMatchersType & + SnapshotDiffType; /** * If you have a mock function, you can use .lastCalledWith to test what * arguments it was last called with. @@ -845,7 +873,7 @@ type JestObjectType = { * Returns the actual module instead of a mock, bypassing all checks on * whether the module should receive a mock implementation or not. */ - requireActual(moduleName: string): any, + requireActual(m: $Flow$ModuleRef | string): T, /** * Returns a mock module instead of the actual module, bypassing all checks * on whether the module should be required normally or not. @@ -938,24 +966,29 @@ type JestSpyType = { calls: JestCallsType, };  +type JestDoneFn = {| + (error?: Error): void, + fail: (error: Error) => void, +|}; + /** Runs this function after every test inside this context */ declare function afterEach( - fn: (done: () => void) => ?Promise, + fn: (done: JestDoneFn) => ?Promise, timeout?: number ): void; /** Runs this function before every test inside this context */ declare function beforeEach( - fn: (done: () => void) => ?Promise, + fn: (done: JestDoneFn) => ?Promise, timeout?: number ): void; /** Runs this function after all tests have finished inside this context */ declare function afterAll( - fn: (done: () => void) => ?Promise, + fn: (done: JestDoneFn) => ?Promise, timeout?: number ): void; /** Runs this function before any tests have started inside this context */ declare function beforeAll( - fn: (done: () => void) => ?Promise, + fn: (done: JestDoneFn) => ?Promise, timeout?: number ): void;  @@ -1001,7 +1034,7 @@ declare var it: { */ ( name: JestTestName, - fn?: (done: () => void) => ?Promise, + fn?: (done: JestDoneFn) => ?Promise, timeout?: number ): void,  @@ -1012,19 +1045,20 @@ declare var it: { * @param {Function} Test * @param {number} Timeout for the test, in milliseconds. */ - only( - name: JestTestName, - fn?: (done: () => void) => ?Promise, - timeout?: number - ): { + only: {| + ( + name: JestTestName, + fn?: (done: JestDoneFn) => ?Promise, + timeout?: number + ): void, each( ...table: Array | mixed> | [Array, string] ): ( name: JestTestName, fn?: (...args: Array) => ?Promise, timeout?: number - ) => void, - }, + ) => void + |},  /** * Skip running this test @@ -1035,7 +1069,7 @@ declare var it: { */ skip( name: JestTestName, - fn?: (done: () => void) => ?Promise, + fn?: (done: JestDoneFn) => ?Promise, timeout?: number ): void,  @@ -1055,7 +1089,7 @@ declare var it: { */ concurrent( name: JestTestName, - fn?: (done: () => void) => ?Promise, + fn?: (done: JestDoneFn) => ?Promise, timeout?: number ): void,  @@ -1075,7 +1109,7 @@ declare var it: {  declare function fit( name: JestTestName, - fn: (done: () => void) => ?Promise, + fn: (done: JestDoneFn) => ?Promise, timeout?: number ): void; /** An individual test unit */ @@ -1146,7 +1180,8 @@ declare var expect: { DomTestingLibraryType & JestJQueryMatchersType & JestStyledComponentsMatchersType & - JestExtendedMatchersType, + JestExtendedMatchersType & + SnapshotDiffType,  /** Add additional Jasmine matchers to Jest's roster */ extend(matchers: { [name: string]: JestMatcher }): void, diff --git a/flow-typed/npm/lodash_v4.x.x.js b/flow-typed/npm/lodash_v4.x.x.js index 64f396a..baf24db 100644 --- a/flow-typed/npm/lodash_v4.x.x.js +++ b/flow-typed/npm/lodash_v4.x.x.js @@ -1,5 +1,6 @@ -// flow-typed signature: 7aab58aebe77066617c1bebd8202ce62 -// flow-typed version: f125eacb94/lodash_v4.x.x/flow_>=v0.63.x +// flow-typed signature: 4d0c9ba43b5b639df7e1f9c70d835f29 +// flow-typed version: 48347c4ce3/lodash_v4.x.x/flow_>=v0.63.x <=v0.103.x +  declare module "lodash" { declare type Path = $ReadOnlyArray | string | number; @@ -273,11 +274,11 @@ declare module "lodash" { flatten(array?: ?$ReadOnlyArray<$ReadOnlyArray | X>): Array; flattenDeep(array?: ?(any[])): Array; flattenDepth(array?: ?(any[]), depth?: ?number): any[]; - fromPairs(pairs?: ?Array<[A, B]>): { [key: A]: B }; + fromPairs(pairs?: ?$ReadOnlyArray<[A, B]>): {| [key: A]: B |}; head(array: ?$ReadOnlyArray): T; - indexOf(array: Array, value: T, fromIndex?: number): number; + indexOf(array: $ReadOnlyArray, value: T, fromIndex?: number): number; indexOf(array: void | null, value?: ?T, fromIndex?: ?number): -1; - initial(array: ?Array): Array; + initial(array: ?$ReadOnlyArray): Array; intersection(...arrays?: Array<$ReadOnlyArray>): Array; //Workaround until (...parameter: T, parameter2: U) works intersectionBy( @@ -325,10 +326,10 @@ declare module "lodash" { a4?: ?$ReadOnlyArray, comparator?: ?Comparator ): Array; - join(array: Array, separator?: ?string): string; + join(array: $ReadOnlyArray, separator?: ?string): string; join(array: void | null, separator?: ?string): ""; last(array: ?$ReadOnlyArray): T; - lastIndexOf(array: Array, value?: ?T, fromIndex?: ?number): number; + lastIndexOf(array: $ReadOnlyArray, 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; @@ -362,10 +363,10 @@ declare module "lodash" { start?: ?number, end?: ?number ): Array; - sortedIndex(array: Array, value: T): number; + sortedIndex(array: $ReadOnlyArray, value: T): number; sortedIndex(array: void | null, value: ?T): 0; sortedIndexBy( - array: Array, + array: $ReadOnlyArray, value?: ?T, iteratee?: ?ValueOnlyIteratee ): number; @@ -374,12 +375,12 @@ declare module "lodash" { value?: ?T, iteratee?: ?ValueOnlyIteratee ): 0; - sortedIndexOf(array: Array, value: T): number; + sortedIndexOf(array: $ReadOnlyArray, value: T): number; sortedIndexOf(array: void | null, value?: ?T): -1; - sortedLastIndex(array: Array, value: T): number; + sortedLastIndex(array: $ReadOnlyArray, value: T): number; sortedLastIndex(array: void | null, value?: ?T): 0; sortedLastIndexBy( - array: Array, + array: $ReadOnlyArray, value: T, iteratee?: ValueOnlyIteratee ): number; @@ -388,14 +389,14 @@ declare module "lodash" { value?: ?T, iteratee?: ?ValueOnlyIteratee ): 0; - sortedLastIndexOf(array: Array, value: T): number; + sortedLastIndexOf(array: $ReadOnlyArray, value: T): number; sortedLastIndexOf(array: void | null, value?: ?T): -1; - sortedUniq(array?: ?Array): Array; + sortedUniq(array?: ?$ReadOnlyArray): Array; sortedUniqBy( - array?: ?Array, + array?: ?$ReadOnlyArray, iteratee?: ?ValueOnlyIteratee ): Array; - tail(array?: ?Array): Array; + tail(array?: ?$ReadOnlyArray): Array; take(array?: ?$ReadOnlyArray, n?: ?number): Array; takeRight(array?: ?$ReadOnlyArray, n?: ?number): Array; takeRightWhile(array?: ?Array, predicate?: ?Predicate): Array; @@ -447,48 +448,48 @@ declare module "lodash" { uniq(array?: ?$ReadOnlyArray): Array; uniqBy(array?: ?$ReadOnlyArray, iteratee?: ?ValueOnlyIteratee): Array; uniqWith(array?: ?$ReadOnlyArray, comparator?: ?Comparator): Array; - unzip(array?: ?Array): Array; + unzip(array?: ?$ReadOnlyArray): Array; unzipWith(array: ?Array, iteratee?: ?Iteratee): Array; without(array?: ?$ReadOnlyArray, ...values?: Array): Array; - xor(...array: Array>): Array; + xor(...array: $ReadOnlyArray<$ReadOnlyArray>): Array; //Workaround until (...parameter: T, parameter2: U) works - xorBy(a1?: ?Array, iteratee?: ?ValueOnlyIteratee): Array; + xorBy(a1?: ?$ReadOnlyArray, iteratee?: ?ValueOnlyIteratee): Array; xorBy( - a1: Array, - a2: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, iteratee?: ValueOnlyIteratee ): Array; xorBy( - a1: Array, - a2: Array, - a3: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, iteratee?: ValueOnlyIteratee ): Array; xorBy( - 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 - xorWith(a1?: ?Array, comparator?: ?Comparator): Array; + xorWith(a1?: ?$ReadOnlyArray, comparator?: ?Comparator): Array; xorWith( - a1: Array, - a2: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, comparator?: Comparator ): Array; xorWith( - a1: Array, - a2: Array, - a3: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, comparator?: Comparator ): Array; xorWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, + a4: $ReadOnlyArray, comparator?: Comparator ): Array; zip(a1?: ?($ReadOnlyArray), a2?: ?($ReadOnlyArray)): Array<[A, B]>; @@ -507,44 +508,44 @@ declare module "lodash" { 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?: ?$ReadOnlyArray): Array<[A]>; + zipWith(a1: $ReadOnlyArray, iteratee: (A) => T): Array;  - zipWith(a1: Array, a2: Array): Array<[A, B]>; + zipWith(a1: $ReadOnlyArray, a2: $ReadOnlyArray): Array<[A, B]>; zipWith( - a1: Array, - a2: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, iteratee: (A, B) => T - ): Array; + ): $ReadOnlyArray;  zipWith( - a1: Array, - a2: Array, - a3: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray ): Array<[A, B, C]>; zipWith( - a1: Array, - a2: Array, - a3: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, iteratee: (A, B, C) => T ): Array;  zipWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, + a4: $ReadOnlyArray ): Array<[A, B, C, D]>; zipWith( - a1: Array, - a2: Array, - a3: Array, - a4: Array, + a1: $ReadOnlyArray, + a2: $ReadOnlyArray, + a3: $ReadOnlyArray, + a4: $ReadOnlyArray, iteratee: (A, B, C, D) => T ): Array;  // Collection - countBy(array: Array, iteratee?: ?ValueOnlyIteratee): Object; + countBy(array: $ReadOnlyArray, iteratee?: ?ValueOnlyIteratee): Object; countBy(array: void | null, iteratee?: ?ValueOnlyIteratee): {}; countBy(object: T, iteratee?: ?ValueOnlyIteratee): Object; // alias of _.forEach @@ -748,11 +749,11 @@ declare module "lodash" { object?: ?T, predicate?: ?OPredicate ): Array; - sample(array: ?Array): T; + sample(array: ?$ReadOnlyArray): T; sample(object: T): V; - sampleSize(array?: ?Array, n?: ?number): Array; + sampleSize(array?: ?$ReadOnlyArray, n?: ?number): Array; sampleSize(object: T, n?: number): Array; - shuffle(array: ?Array): Array; + shuffle(array: ?$ReadOnlyArray): Array; shuffle(object: T): Array; size(collection: $ReadOnlyArray | Object | string): number; some(array: void | null, predicate?: ?Predicate): false; @@ -839,13 +840,13 @@ declare module "lodash" { gte(value: any, other: any): boolean; isArguments(value: void | null): false; isArguments(value: any): boolean; - isArray(value: Array): true; + isArray(value: $ReadOnlyArray): true; isArray(value: any): false; isArrayBuffer(value: ArrayBuffer): true; isArrayBuffer(value: any): false; - isArrayLike(value: Array | string | { length: number }): true; + isArrayLike(value: $ReadOnlyArray | string | { length: number }): true; isArrayLike(value: any): false; - isArrayLikeObject(value: { length: number } | Array): true; + isArrayLikeObject(value: { length: number } | $ReadOnlyArray): true; isArrayLikeObject(value: any): false; isBoolean(value: boolean): true; isBoolean(value: any): false; @@ -948,16 +949,16 @@ declare module "lodash" { ceil(number: number, precision?: number): number; divide(dividend: number, divisor: number): number; floor(number: number, precision?: number): number; - max(array: ?Array): T; + max(array: ?$ReadOnlyArray): T; maxBy(array: ?$ReadOnlyArray, iteratee?: Iteratee): T; - mean(array: Array<*>): number; + mean(array: $ReadOnlyArray<*>): number; meanBy(array: Array, iteratee?: Iteratee): number; - min(array: ?Array): T; + min(array: ?$ReadOnlyArray): 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; - sum(array: Array<*>): number; + sum(array: $ReadOnlyArray<*>): number; sumBy(array: $ReadOnlyArray, iteratee?: Iteratee): number;  // number @@ -1075,8 +1076,8 @@ declare module "lodash" { source: A | B | C | D ) => any | void ): Object; - at(object?: ?Object, ...paths: Array): Array; - at(object?: ?Object, paths: Array): Array; + at(object?: ?Object, ...paths: $ReadOnlyArray): Array; + at(object?: ?Object, paths: $ReadOnlyArray): Array; create(prototype: void | null, properties: void | null): {}; create(prototype: T, properties: Object): T; create(prototype: any, properties: void | null): {}; @@ -1246,14 +1247,14 @@ declare module "lodash" { source: A | B | C | D ) => any | void ): Object; - omit(object?: ?Object, ...props: Array): Object; - omit(object?: ?Object, props: Array): Object; + omit(object?: ?Object, ...props: $ReadOnlyArray): Object; + omit(object?: ?Object, props: $ReadOnlyArray): Object; omitBy( object: T, predicate?: ?OPredicate ): Object; omitBy(object: void | null, predicate?: ?OPredicate): {}; - pick(object?: ?Object, ...props: Array): Object; + pick(object?: ?Object, ...props: $ReadOnlyArray): Object; pick(object?: ?Object, props: $ReadOnlyArray): Object; pickBy( object: T, @@ -1413,9 +1414,7 @@ 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; flow: $ComposeReverse & ((funcs: Array) => Function); - flow: $ComposeReverse & ((...funcs: Array) => Function); flowRight: $Compose & ((funcs: Array) => Function); - flowRight: $Compose & ((...funcs: Array) => Function); identity(value: T): T; iteratee(func?: any): Function; matches(source?: ?Object): Function; @@ -1769,65 +1768,65 @@ declare module "lodash/fp" { ): number; // alias of _.head first(array: $ReadOnlyArray): T; - flatten(array: Array | X>): Array; + flatten(array: $ReadOnlyArray<$ReadOnlyArray | 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 }; + fromPairs(pairs: $ReadOnlyArray<[A, B]>): {| [key: A]: B |}; head(array: $ReadOnlyArray): T; - indexOf(value: T): (array: Array) => number; - indexOf(value: T, array: Array): number; + indexOf(value: T): (array: $ReadOnlyArray) => number; + indexOf(value: T, array: $ReadOnlyArray): number; indexOfFrom( value: T - ): ((fromIndex: number) => (array: Array) => number) & - ((fromIndex: number, array: Array) => number); - indexOfFrom(value: T, fromIndex: number): (array: Array) => number; - indexOfFrom(value: T, fromIndex: number, array: Array): number; - initial(array: Array): Array; + ): ((fromIndex: number) => (array: $ReadOnlyArray) => number) & + ((fromIndex: number, array: $ReadOnlyArray) => number); + indexOfFrom(value: T, fromIndex: number): (array: $ReadOnlyArray) => number; + indexOfFrom(value: T, fromIndex: number, array: $ReadOnlyArray): number; + initial(array: $ReadOnlyArray): Array; init(array: Array): Array; - intersection(a1: Array): (a2: Array) => Array; - intersection(a1: Array, a2: Array): Array; + intersection(a1: $ReadOnlyArray): (a2: $ReadOnlyArray) => Array; + intersection(a1: $ReadOnlyArray, a2: $ReadOnlyArray): Array; intersectionBy( iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); + ): ((a1: $ReadOnlyArray) => (a2: $ReadOnlyArray) => Array) & + ((a1: $ReadOnlyArray, a2: $ReadOnlyArray) => Array); intersectionBy( iteratee: ValueOnlyIteratee, - a1: Array + a1: $ReadOnlyArray ): (a2: Array) => Array; intersectionBy( iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray ): Array; intersectionWith( comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); + ): ((a1: $ReadOnlyArray) => (a2: $ReadOnlyArray) => Array) & + ((a1: $ReadOnlyArray, a2: $ReadOnlyArray) => Array); intersectionWith( comparator: Comparator, - a1: Array - ): (a2: Array) => Array; + a1: $ReadOnlyArray + ): (a2: $ReadOnlyArray) => Array; intersectionWith( comparator: Comparator, - a1: Array, - a2: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray ): Array; - join(separator: string): (array: Array) => string; - join(separator: string, array: Array): string; - last(array: Array): T; - lastIndexOf(value: T): (array: Array) => number; - lastIndexOf(value: T, array: Array): number; + join(separator: string): (array: $ReadOnlyArray) => string; + join(separator: string, array: $ReadOnlyArray): string; + last(array: $ReadOnlyArray): T; + lastIndexOf(value: T): (array: $ReadOnlyArray) => number; + lastIndexOf(value: T, array: $ReadOnlyArray): number; lastIndexOfFrom( value: T - ): ((fromIndex: number) => (array: Array) => number) & - ((fromIndex: number, array: Array) => number); + ): ((fromIndex: number) => (array: $ReadOnlyArray) => number) & + ((fromIndex: number, array: $ReadOnlyArray) => number); lastIndexOfFrom( value: T, fromIndex: number - ): (array: Array) => number; - lastIndexOfFrom(value: T, fromIndex: number, array: Array): number; + ): (array: $ReadOnlyArray) => number; + lastIndexOfFrom(value: T, fromIndex: number, array: $ReadOnlyArray): number; nth(n: number): (array: T[]) => T; nth(n: number, array: T[]): T; pull(value: T): (array: Array) => Array; @@ -1860,154 +1859,154 @@ declare module "lodash/fp" { reverse(array: Array): Array; slice( start: number - ): ((end: number) => (array: Array) => Array) & - ((end: number, array: Array) => Array); - slice(start: number, end: number): (array: Array) => Array; - slice(start: number, end: number, array: Array): Array; - sortedIndex(value: T): (array: Array) => number; - sortedIndex(value: T, array: Array): number; + ): ((end: number) => (array: $ReadOnlyArray) => Array) & + ((end: number, array: $ReadOnlyArray) => Array); + slice(start: number, end: number): (array: $ReadOnlyArray) => Array; + slice(start: number, end: number, array: $ReadOnlyArray): Array; + sortedIndex(value: T): (array: $ReadOnlyArray) => number; + sortedIndex(value: T, array: $ReadOnlyArray): number; sortedIndexBy( iteratee: ValueOnlyIteratee - ): ((value: T) => (array: Array) => number) & + ): ((value: T) => (array: $ReadOnlyArray) => number) & ((value: T, array: Array) => number); sortedIndexBy( iteratee: ValueOnlyIteratee, value: T - ): (array: Array) => number; + ): (array: $ReadOnlyArray) => number; sortedIndexBy( iteratee: ValueOnlyIteratee, value: T, - array: Array + array: $ReadOnlyArray ): number; - sortedIndexOf(value: T): (array: Array) => number; - sortedIndexOf(value: T, array: Array): number; - sortedLastIndex(value: T): (array: Array) => number; - sortedLastIndex(value: T, array: Array): number; + sortedIndexOf(value: T): (array: $ReadOnlyArray) => number; + sortedIndexOf(value: T, array: $ReadOnlyArray): number; + sortedLastIndex(value: T): (array: $ReadOnlyArray) => number; + sortedLastIndex(value: T, array: $ReadOnlyArray): number; sortedLastIndexBy( iteratee: ValueOnlyIteratee - ): ((value: T) => (array: Array) => number) & + ): ((value: T) => (array: $ReadOnlyArray) => number) & ((value: T, array: Array) => number); sortedLastIndexBy( iteratee: ValueOnlyIteratee, value: T - ): (array: Array) => number; + ): (array: $ReadOnlyArray) => number; sortedLastIndexBy( iteratee: ValueOnlyIteratee, value: T, - array: Array + array: $ReadOnlyArray ): number; - sortedLastIndexOf(value: T): (array: Array) => number; - sortedLastIndexOf(value: T, array: Array): number; - sortedUniq(array: Array): Array; - sortedUniqBy(iteratee: ValueOnlyIteratee, array: Array): Array; - tail(array: Array): Array; + sortedLastIndexOf(value: T): (array: $ReadOnlyArray) => number; + sortedLastIndexOf(value: T, array: $ReadOnlyArray): number; + sortedUniq(array: $ReadOnlyArray): Array; + sortedUniqBy(iteratee: ValueOnlyIteratee, array: $ReadOnlyArray): Array; + tail(array: $ReadOnlyArray): Array; take(n: number): (array: $ReadOnlyArray) => Array; take(n: number, array: $ReadOnlyArray): Array; takeRight(n: number): (array: $ReadOnlyArray) => Array; takeRight(n: number, array: $ReadOnlyArray): Array; - takeLast(n: number): (array: Array) => Array; - takeLast(n: number, array: Array): Array; + takeLast(n: number): (array: $ReadOnlyArray) => Array; + takeLast(n: number, array: $ReadOnlyArray): Array; takeRightWhile(predicate: Predicate): (array: Array) => Array; takeRightWhile(predicate: Predicate, array: Array): Array; takeLastWhile(predicate: Predicate): (array: Array) => Array; takeLastWhile(predicate: Predicate, array: Array): Array; takeWhile(predicate: Predicate): (array: Array) => Array; takeWhile(predicate: Predicate, array: Array): Array; - union(a1: Array): (a2: Array) => Array; - union(a1: Array, a2: Array): Array; + union(a1: $ReadOnlyArray): (a2: Array) => Array; + union(a1: $ReadOnlyArray, a2: $ReadOnlyArray): Array; unionBy( iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); + ): ((a1: $ReadOnlyArray) => (a2: $ReadOnlyArray) => Array) & + ((a1: $ReadOnlyArray, a2: $ReadOnlyArray) => Array); unionBy( iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; + a1: $ReadOnlyArray + ): (a2: $ReadOnlyArray) => Array; unionBy( iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray ): Array; unionWith( comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); + ): ((a1: $ReadOnlyArray) => (a2: $ReadOnlyArray) => Array) & + ((a1: $ReadOnlyArray, a2: $ReadOnlyArray) => Array); unionWith( comparator: Comparator, - a1: Array - ): (a2: Array) => Array; + a1: $ReadOnlyArray + ): (a2: $ReadOnlyArray) => Array; unionWith( comparator: Comparator, - a1: Array, - a2: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray ): Array; - uniq(array: Array): Array; - uniqBy(iteratee: ValueOnlyIteratee): (array: Array) => Array; - uniqBy(iteratee: ValueOnlyIteratee, array: Array): Array; - uniqWith(comparator: Comparator): (array: Array) => Array; - uniqWith(comparator: Comparator, array: Array): Array; - unzip(array: Array): Array; + uniq(array: $ReadOnlyArray): Array; + uniqBy(iteratee: ValueOnlyIteratee): (array: $ReadOnlyArray) => Array; + uniqBy(iteratee: ValueOnlyIteratee, array: $ReadOnlyArray): Array; + uniqWith(comparator: Comparator): (array: $ReadOnlyArray) => Array; + uniqWith(comparator: Comparator, array: $ReadOnlyArray): Array; + unzip(array: $ReadOnlyArray): Array; unzipWith(iteratee: Iteratee): (array: Array) => Array; unzipWith(iteratee: Iteratee, array: Array): Array; - without(values: Array): (array: Array) => Array; - without(values: Array, array: Array): Array; - xor(a1: Array): (a2: Array) => Array; - xor(a1: Array, a2: Array): Array; - symmetricDifference(a1: Array): (a2: Array) => Array; - symmetricDifference(a1: Array, a2: Array): Array; + without(values: $ReadOnlyArray): (array: $ReadOnlyArray) => Array; + without(values: $ReadOnlyArray, array: $ReadOnlyArray): Array; + xor(a1: $ReadOnlyArray): (a2: $ReadOnlyArray) => Array; + xor(a1: $ReadOnlyArray, a2: $ReadOnlyArray): Array; + symmetricDifference(a1: $ReadOnlyArray): (a2: $ReadOnlyArray) => Array; + symmetricDifference(a1: $ReadOnlyArray, a2: $ReadOnlyArray): Array; xorBy( iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); + ): ((a1: $ReadOnlyArray) => (a2: $ReadOnlyArray) => Array) & + ((a1: $ReadOnlyArray, a2: $ReadOnlyArray) => Array); xorBy( iteratee: ValueOnlyIteratee, - a1: Array - ): (a2: Array) => Array; + a1: $ReadOnlyArray + ): (a2: $ReadOnlyArray) => Array; xorBy( iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray ): Array; symmetricDifferenceBy( iteratee: ValueOnlyIteratee - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); + ): ((a1: $ReadOnlyArray) => (a2: $ReadOnlyArray) => Array) & + ((a1: $ReadOnlyArray, a2: $ReadOnlyArray) => Array); symmetricDifferenceBy( iteratee: ValueOnlyIteratee, - a1: Array + a1: $ReadOnlyArray ): (a2: Array) => Array; symmetricDifferenceBy( iteratee: ValueOnlyIteratee, - a1: Array, - a2: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray ): Array; xorWith( comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); + ): ((a1: $ReadOnlyArray) => (a2: $ReadOnlyArray) => Array) & + ((a1: $ReadOnlyArray, a2: $ReadOnlyArray) => Array); xorWith( comparator: Comparator, - a1: Array - ): (a2: Array) => Array; - xorWith(comparator: Comparator, a1: Array, a2: Array): Array; + a1: $ReadOnlyArray + ): (a2: $ReadOnlyArray) => Array; + xorWith(comparator: Comparator, a1: $ReadOnlyArray, a2: $ReadOnlyArray): Array; symmetricDifferenceWith( comparator: Comparator - ): ((a1: Array) => (a2: Array) => Array) & - ((a1: Array, a2: Array) => Array); + ): ((a1: $ReadOnlyArray) => (a2: $ReadOnlyArray) => Array) & + ((a1: $ReadOnlyArray, a2: $ReadOnlyArray) => Array); symmetricDifferenceWith( comparator: Comparator, - a1: Array - ): (a2: Array) => Array; + a1: $ReadOnlyArray + ): (a2: $ReadOnlyArray) => Array; symmetricDifferenceWith( comparator: Comparator, - a1: Array, - a2: Array + a1: $ReadOnlyArray, + a2: $ReadOnlyArray ): Array; - zip(a1: A[]): (a2: B[]) => Array<[A, B]>; - zip(a1: A[], a2: B[]): Array<[A, B]>; - zipAll(arrays: Array>): Array; - zipObject(props?: Array): (values?: Array) => { [key: K]: V }; - zipObject(props?: Array, values?: Array): { [key: K]: V }; + zip(a1: $ReadOnlyArray): (a2: $ReadOnlyArray) => Array<[A, B]>; + zip(a1: $ReadOnlyArray, a2: $ReadOnlyArray): Array<[A, B]>; + zipAll(arrays: $ReadOnlyArray<$ReadOnlyArray>): Array; + zipObject(props?: $ReadOnlyArray): (values?: $ReadOnlyArray) => { [key: K]: V }; + zipObject(props?: $ReadOnlyArray, values?: $ReadOnlyArray): { [key: K]: V }; zipObj(props: Array): (values: Array) => Object; zipObj(props: Array, values: Array): Object; zipObjectDeep(props: any[]): (values: any) => Object; @@ -2028,10 +2027,10 @@ declare module "lodash/fp" { // Collection countBy( iteratee: ValueOnlyIteratee - ): (collection: Array | { [id: any]: T }) => { [string]: number }; + ): (collection: $ReadOnlyArray | { [id: any]: T }) => { [string]: number }; countBy( iteratee: ValueOnlyIteratee, - collection: Array | { [id: any]: T } + collection: $ReadOnlyArray | { [id: any]: T } ): { [string]: number }; // alias of _.forEach each( @@ -3183,15 +3182,10 @@ declare module "lodash/fp" { defaultTo(defaultValue: T2): (value: T1) => T1 | T2; defaultTo(defaultValue: T2, value: T1): T1 | T2; flow: $ComposeReverse & ((funcs: Array) => Function); - flow: $ComposeReverse & ((...funcs: Array) => Function); pipe: $ComposeReverse & ((funcs: Array) => Function); - pipe: $ComposeReverse & ((...funcs: Array) => Function); flowRight: $Compose & ((funcs: Array) => Function); - flowRight: $Compose & ((...funcs: Array) => Function); compose: $Compose & ((funcs: Array) => Function); - compose: $Compose & ((...funcs: Array) => Function); compose(funcs: Array): Function; - compose(...funcs: Array): Function; identity(value: T): T; iteratee(func: any): Function; matches(source: Object): (object: Object) => boolean; diff --git a/flow-typed/npm/prettier_v1.x.x.js b/flow-typed/npm/prettier_v1.x.x.js index 3194b07..32eb25c 100644 --- a/flow-typed/npm/prettier_v1.x.x.js +++ b/flow-typed/npm/prettier_v1.x.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 5d9f7564186b12849222d06b0c689452 -// flow-typed version: a3dbb68519/prettier_v1.x.x/flow_>=v0.84.x +// flow-typed signature: b80517b7c0c4c471e1e6fdbeb22ce46e +// flow-typed version: c6154227d1/prettier_v1.x.x/flow_>=v0.84.x <=v0.103.x  declare module "prettier" { declare export type AST = { [key: string]: any, ... }; diff --git a/flow-typed/npm/tape_v4.5.x.js b/flow-typed/npm/tape_v4.5.x.js index 0182d92..a32a3ac 100644 --- a/flow-typed/npm/tape_v4.5.x.js +++ b/flow-typed/npm/tape_v4.5.x.js @@ -1,5 +1,5 @@ -// flow-typed signature: 319345c7d1f795de3b740a00bf5e38f1 -// flow-typed version: 622c2ee76d/tape_v4.5.x/flow_>=v0.25.x +// flow-typed signature: d99ebc3efa6a76d11525106e110b9ab4 +// flow-typed version: c6154227d1/tape_v4.5.x/flow_>=v0.25.x <=v0.103.x  /* eslint-disable */  diff --git a/src/ObservationDialog/Select.js b/src/ObservationDialog/Select.js index ef458f9..6ebeae4 100644 --- a/src/ObservationDialog/Select.js +++ b/src/ObservationDialog/Select.js @@ -89,7 +89,7 @@ function Encoder(options: Array) {  function isSelectableFieldValue( v: SelectableFieldValue | LabeledSelectOption -): boolean %checks { +): boolean { return ( typeof v === 'string' || typeof v === 'boolean' ||