Skip to content

Commit 6aba6c5

Browse files
committed
upate flow to latest and fix flow errors
1 parent 1f53402 commit 6aba6c5

24 files changed

Lines changed: 102 additions & 52 deletions

.flowconfig

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,5 @@
1010
ambiguous-object-type=error
1111

1212
[options]
13-
esproposal.optional_chaining=enable
14-
types_first=true
1513

1614
[strict]

flow-typed/npm/@babel/cli_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: b0d326c2839ae541f1ce7740d3a73d30
2-
// flow-typed version: <<STUB>>/@babel/cli_v7.8.4/flow_v0.131.0
1+
// flow-typed signature: 2ee082a333b7c77a363cdc3199c1b570
2+
// flow-typed version: <<STUB>>/@babel/cli_v7.8.4/flow_v0.152.0
33

44
/**
55
* This is an autogenerated libdef stub for:

flow-typed/npm/@babel/core_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 015c9b9d859222570a5cb757435b6e4d
2-
// flow-typed version: <<STUB>>/@babel/core_v7.9.6/flow_v0.131.0
1+
// flow-typed signature: a9b9b1807f6465bf72ff55461d15cc85
2+
// flow-typed version: <<STUB>>/@babel/core_v7.9.6/flow_v0.152.0
33

44
/**
55
* This is an autogenerated libdef stub for:
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
// flow-typed signature: 75e74c1f1d4d0d32a292282820cd66d0
2+
// flow-typed version: <<STUB>>/@babel/plugin-transform-modules-commonjs_v^7.10.4/flow_v0.152.0
3+
4+
/**
5+
* This is an autogenerated libdef stub for:
6+
*
7+
* '@babel/plugin-transform-modules-commonjs'
8+
*
9+
* Fill this stub out by replacing all the `any` types.
10+
*
11+
* Once filled out, we encourage you to share your work with the
12+
* community by sending a pull request to:
13+
* https://github.com/flowtype/flow-typed
14+
*/
15+
16+
declare module '@babel/plugin-transform-modules-commonjs' {
17+
declare module.exports: any;
18+
}
19+
20+
/**
21+
* We include stubs for each file inside this npm package in case you need to
22+
* require those files directly. Feel free to delete any files that aren't
23+
* needed.
24+
*/
25+
declare module '@babel/plugin-transform-modules-commonjs/lib' {
26+
declare module.exports: any;
27+
}
28+
29+
// Filename aliases
30+
declare module '@babel/plugin-transform-modules-commonjs/lib/index' {
31+
declare module.exports: $Exports<'@babel/plugin-transform-modules-commonjs/lib'>;
32+
}
33+
declare module '@babel/plugin-transform-modules-commonjs/lib/index.js' {
34+
declare module.exports: $Exports<'@babel/plugin-transform-modules-commonjs/lib'>;
35+
}

flow-typed/npm/@babel/preset-env_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: c78c4230a97e46bca0ba20c9cf9c4a23
2-
// flow-typed version: <<STUB>>/@babel/preset-env_v7.9.6/flow_v0.131.0
1+
// flow-typed signature: ca00fa4bb8196269d4eaed03a8e3bdd8
2+
// flow-typed version: <<STUB>>/@babel/preset-env_v7.9.6/flow_v0.152.0
33

44
/**
55
* This is an autogenerated libdef stub for:

flow-typed/npm/@babel/preset-flow_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: be19fac260762ecf4c06eea81c5f4fe4
2-
// flow-typed version: <<STUB>>/@babel/preset-flow_v7.9.0/flow_v0.131.0
1+
// flow-typed signature: 529eb557d2e44516ccb389fc84daa3e2
2+
// flow-typed version: <<STUB>>/@babel/preset-flow_v7.9.0/flow_v0.152.0
33

44
/**
55
* This is an autogenerated libdef stub for:

flow-typed/npm/@babel/preset-react_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 27543ff1a262343aa28c1c4f71229240
2-
// flow-typed version: <<STUB>>/@babel/preset-react_v^7.10.4/flow_v0.131.0
1+
// flow-typed signature: 1516def4977b73f2825a40acaf5ed792
2+
// flow-typed version: <<STUB>>/@babel/preset-react_v^7.10.4/flow_v0.152.0
33

44
/**
55
* This is an autogenerated libdef stub for:

flow-typed/npm/@testing-library/react_v10.x.x.js

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 2ec4c8cd8f67266b906a8137b83f9fc7
2-
// flow-typed version: 11a906f160/@testing-library/react_v10.x.x/flow_>=v0.104.x
1+
// flow-typed signature: ae2315526b7166323994a02216dc7db6
2+
// flow-typed version: 539567b90a/@testing-library/react_v10.x.x/flow_>=v0.104.x
33

44
declare module '@testing-library/react' {
55
// This type comes from
@@ -137,7 +137,7 @@ declare module '@testing-library/react' {
137137
) => Promise<HTMLElement>;
138138

139139
declare type FindAllByRole = (
140-
role: Matcher,
140+
role: any,
141141
options?: ByRoleOptions,
142142
waitForElementOptions?: WaitForElementOptions
143143
) => Promise<HTMLElement[]>;
@@ -238,7 +238,7 @@ declare module '@testing-library/react' {
238238
container?: HTMLElement,
239239
baseElement?: HTMLElement,
240240
hydrate?: boolean,
241-
wrapper?: React.ComponentType,
241+
wrapper?: React$ComponentType<any>,
242242
|};
243243

244244
declare export type RenderOptionsWithCustomQueries<
@@ -248,17 +248,17 @@ declare module '@testing-library/react' {
248248
container?: HTMLElement,
249249
baseElement?: HTMLElement,
250250
hydrate?: boolean,
251-
wrapper?: React.ComponentType,
251+
wrapper?: React$ComponentType<any>,
252252
|};
253253

254254
declare export function render(
255-
ui: React.ReactElement<any>,
255+
ui: React$Element<any>,
256256
options?: RenderOptionsWithoutCustomQueries
257257
): RenderResult<>;
258258
declare export function render<
259259
CustomQueries: { [string]: (...args: Array<any>) => any, ... }
260260
>(
261-
ui: React.ReactElement<any>,
261+
ui: React$Element<any>,
262262
options: RenderOptionsWithCustomQueries<CustomQueries>
263263
): RenderResult<CustomQueries>;
264264

@@ -403,6 +403,11 @@ declare module '@testing-library/react' {
403403
id: TextMatch,
404404
options?: TextMatchOptions
405405
): HTMLElement;
406+
declare export function getAllByTestId(
407+
container: HTMLElement,
408+
text: TextMatch,
409+
options?: TextMatchOptions
410+
): Array<HTMLElement>;
406411
declare export function queryByText(
407412
container: HTMLElement,
408413
text: TextMatch,

flow-typed/npm/babel-eslint_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: 18a83931484bf0ef058d84830b39a072
2-
// flow-typed version: <<STUB>>/babel-eslint_v10.1.0/flow_v0.131.0
1+
// flow-typed signature: f187cee216d90aa680085e84d21ab0b2
2+
// flow-typed version: <<STUB>>/babel-eslint_v10.1.0/flow_v0.152.0
33

44
/**
55
* This is an autogenerated libdef stub for:

flow-typed/npm/eslint-config-airbnb_vx.x.x.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
// flow-typed signature: e9a99bbfc527201bc72e86eff62fabc8
2-
// flow-typed version: <<STUB>>/eslint-config-airbnb_v18.1.0/flow_v0.131.0
1+
// flow-typed signature: e02ae1f7c7dfea5e411c1a1e75f117a8
2+
// flow-typed version: <<STUB>>/eslint-config-airbnb_v18.1.0/flow_v0.152.0
33

44
/**
55
* This is an autogenerated libdef stub for:

0 commit comments

Comments
 (0)