diff --git a/.eslintrc.js b/.eslintrc.js index cd2489589e..e219e428d2 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -547,7 +547,6 @@ module.exports = { }, globals: { - $Call: 'readonly', $ElementType: 'readonly', $Flow$ModuleRef: 'readonly', $FlowFixMe: 'readonly', diff --git a/package.json b/package.json index df9ad21ea6..6893a41442 100644 --- a/package.json +++ b/package.json @@ -72,8 +72,8 @@ "eslint-plugin-react-internal": "link:./scripts/eslint-rules", "fbjs-scripts": "^3.0.1", "filesize": "^6.0.1", - "flow-bin": "^0.246", - "flow-remove-types": "^2.246", + "flow-bin": "^0.247", + "flow-remove-types": "^2.247", "glob": "^7.1.6", "glob-stream": "^6.1.0", "google-closure-compiler": "^20230206.0.0", diff --git a/packages/react-devtools-shared/src/hooks/parseHookNames/loadSourceAndMetadata.js b/packages/react-devtools-shared/src/hooks/parseHookNames/loadSourceAndMetadata.js index 27073a1a6d..2a72da0ce2 100644 --- a/packages/react-devtools-shared/src/hooks/parseHookNames/loadSourceAndMetadata.js +++ b/packages/react-devtools-shared/src/hooks/parseHookNames/loadSourceAndMetadata.js @@ -134,7 +134,7 @@ function decodeBase64String(encoded: string): Object { function extractAndLoadSourceMapJSON( locationKeyToHookSourceAndMetadata: LocationKeyToHookSourceAndMetadata, -): Promise(p: Promise | T) => T, Promise>>> { +): Promise { // Deduplicate fetches, since there can be multiple location keys per source map. const dedupedFetchPromises = new Map>(); @@ -461,7 +461,7 @@ function isUnnamedBuiltInHook(hook: HooksNode) { function loadSourceFiles( locationKeyToHookSourceAndMetadata: LocationKeyToHookSourceAndMetadata, fetchFileWithCaching: FetchFileWithCaching | null, -): Promise(p: Promise | T) => T, Promise>>> { +): Promise { // Deduplicate fetches, since there can be multiple location keys per file. const dedupedFetchPromises = new Map>(); diff --git a/yarn.lock b/yarn.lock index 1223d8db06..43aa75844c 100644 --- a/yarn.lock +++ b/yarn.lock @@ -9101,12 +9101,12 @@ flatted@^3.2.9: resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a" integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== -flow-bin@^0.246: - version "0.246.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.246.0.tgz#d08a696e6f796c497f7a7e98b22057dd0df0c38d" - integrity sha512-RB0gaPxrehIE0WoUbUMKgX/XpaY55JbtBhNhix5WzKFIDmRTVojJa+EJEbrTlo2BWRAZnnqOl13wanHmWwb1eA== +flow-bin@^0.247: + version "0.247.1" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.247.1.tgz#8c8d08fcee11ca43cbb6059edb9933a29bdedc57" + integrity sha512-03wwQ5kPW4CYqhXvxTseMs2v6QuVwCtifVkON2UUyDg6Jp1+CaQpLAZK+sFNzQOExKp0Yvoug+fZOUb33ARwHQ== -flow-remove-types@^2.246: +flow-remove-types@^2.247: version "2.279.0" resolved "https://registry.yarnpkg.com/flow-remove-types/-/flow-remove-types-2.279.0.tgz#3a3388d9158eba0f82c40d80d31d9640b883a3f5" integrity sha512-bPFloMR/A2b/r/sIsf7Ix0LaMicCJNjwhXc4xEEQVzJCIz5u7C7XDaEOXOiqveKlCYK7DcBNn6R01Cbbc9gsYA==