Skip to content

Commit 5f06c3d

Browse files
authored
Update Flow to 0.247 (#34245)
`$Call` was removed.
1 parent 243a56b commit 5f06c3d

File tree

4 files changed

+9
-10
lines changed

4 files changed

+9
-10
lines changed

.eslintrc.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -547,7 +547,6 @@ module.exports = {
547547
},
548548

549549
globals: {
550-
$Call: 'readonly',
551550
$ElementType: 'readonly',
552551
$Flow$ModuleRef: 'readonly',
553552
$FlowFixMe: 'readonly',

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,8 +72,8 @@
7272
"eslint-plugin-react-internal": "link:./scripts/eslint-rules",
7373
"fbjs-scripts": "^3.0.1",
7474
"filesize": "^6.0.1",
75-
"flow-bin": "^0.246",
76-
"flow-remove-types": "^2.246",
75+
"flow-bin": "^0.247",
76+
"flow-remove-types": "^2.247",
7777
"glob": "^7.1.6",
7878
"glob-stream": "^6.1.0",
7979
"google-closure-compiler": "^20230206.0.0",

packages/react-devtools-shared/src/hooks/parseHookNames/loadSourceAndMetadata.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ function decodeBase64String(encoded: string): Object {
134134

135135
function extractAndLoadSourceMapJSON(
136136
locationKeyToHookSourceAndMetadata: LocationKeyToHookSourceAndMetadata,
137-
): Promise<Array<$Call<<T>(p: Promise<T> | T) => T, Promise<void>>>> {
137+
): Promise<mixed> {
138138
// Deduplicate fetches, since there can be multiple location keys per source map.
139139
const dedupedFetchPromises = new Map<string, Promise<$FlowFixMe>>();
140140

@@ -461,7 +461,7 @@ function isUnnamedBuiltInHook(hook: HooksNode) {
461461
function loadSourceFiles(
462462
locationKeyToHookSourceAndMetadata: LocationKeyToHookSourceAndMetadata,
463463
fetchFileWithCaching: FetchFileWithCaching | null,
464-
): Promise<Array<$Call<<T>(p: Promise<T> | T) => T, Promise<void>>>> {
464+
): Promise<mixed> {
465465
// Deduplicate fetches, since there can be multiple location keys per file.
466466
const dedupedFetchPromises = new Map<string, Promise<$FlowFixMe>>();
467467

yarn.lock

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9101,12 +9101,12 @@ flatted@^3.2.9:
91019101
resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a"
91029102
integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw==
91039103

9104-
flow-bin@^0.246:
9105-
version "0.246.0"
9106-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.246.0.tgz#d08a696e6f796c497f7a7e98b22057dd0df0c38d"
9107-
integrity sha512-RB0gaPxrehIE0WoUbUMKgX/XpaY55JbtBhNhix5WzKFIDmRTVojJa+EJEbrTlo2BWRAZnnqOl13wanHmWwb1eA==
9104+
flow-bin@^0.247:
9105+
version "0.247.1"
9106+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.247.1.tgz#8c8d08fcee11ca43cbb6059edb9933a29bdedc57"
9107+
integrity sha512-03wwQ5kPW4CYqhXvxTseMs2v6QuVwCtifVkON2UUyDg6Jp1+CaQpLAZK+sFNzQOExKp0Yvoug+fZOUb33ARwHQ==
91089108

9109-
flow-remove-types@^2.246:
9109+
flow-remove-types@^2.247:
91109110
version "2.279.0"
91119111
resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.279.0.tgz#3a3388d9158eba0f82c40d80d31d9640b883a3f5"
91129112
integrity sha512-bPFloMR/A2b/r/sIsf7Ix0LaMicCJNjwhXc4xEEQVzJCIz5u7C7XDaEOXOiqveKlCYK7DcBNn6R01Cbbc9gsYA==

0 commit comments

Comments
 (0)