From 902ba22877a372a4ae8949a902ea7c37863babf4 Mon Sep 17 00:00:00 2001 From: Nicolas Gallagher Date: Tue, 9 Jan 2018 17:49:52 -0800 Subject: [PATCH] Update to flow-bin@0.63.1 --- .flowconfig | 4 ++-- package.json | 2 +- .../src/modules/requestIdleCallback/index.js | 3 ++- yarn.lock | 6 +++--- 4 files changed, 8 insertions(+), 7 deletions(-) diff --git a/.flowconfig b/.flowconfig index afa0a0bf..cf05611e 100644 --- a/.flowconfig +++ b/.flowconfig @@ -1,5 +1,5 @@ [version] -^0.61.0 +^0.63.0 [ignore] /.*/__tests__/.* @@ -14,4 +14,4 @@ /types [options] -unsafe.enable_getters_and_setters=true + diff --git a/package.json b/package.json index acedfeec..04a14c3d 100644 --- a/package.json +++ b/package.json @@ -40,7 +40,7 @@ "eslint-config-prettier": "^2.9.0", "eslint-plugin-promise": "^3.6.0", "eslint-plugin-react": "^7.5.1", - "flow-bin": "^0.61.0", + "flow-bin": "^0.63.1", "husky": "^0.14.3", "jest": "^21.2.1", "lerna": "^2.6.0", diff --git a/packages/react-native-web/src/modules/requestIdleCallback/index.js b/packages/react-native-web/src/modules/requestIdleCallback/index.js index 168b89e7..f561e354 100644 --- a/packages/react-native-web/src/modules/requestIdleCallback/index.js +++ b/packages/react-native-web/src/modules/requestIdleCallback/index.js @@ -22,7 +22,8 @@ const _requestIdleCallback = function(cb: Function) { }, 1); }; -const _cancelIdleCallback = function(id: number) { +// $FlowFixMe (TimeoutID type is not recognized by eslint) +const _cancelIdleCallback = function(id) { clearTimeout(id); }; diff --git a/yarn.lock b/yarn.lock index 7f10fa7a..78c3dd96 100644 --- a/yarn.lock +++ b/yarn.lock @@ -3713,9 +3713,9 @@ flatten@^1.0.2: version "1.0.2" resolved "https://registry.yarnpkg.com/flatten/-/flatten-1.0.2.tgz#dae46a9d78fbe25292258cc1e780a41d95c03782" -flow-bin@^0.61.0: - version "0.61.0" - resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.61.0.tgz#d0473a8c35dbbf4de573823f4932124397d32d35" +flow-bin@^0.63.1: + version "0.63.1" + resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.63.1.tgz#ab00067c197169a5fb5b4996c8f6927b06694828" flush-write-stream@^1.0.0: version "1.0.2"