Skip to content

Commit 30dfe7a

Browse files
committed
Update flow (0.61.0) and declare context type
1 parent 7a72aa0 commit 30dfe7a

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
3939
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
4040

4141
[version]
42-
^0.57.3
42+
^0.61.0

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ install:
3030
test_script:
3131
- node --version
3232
- yarn lint
33-
# - yarn flow (TODO: investigate why it fails on Windows)
33+
- yarn flow
3434
- yarn build
3535
- yarn test
3636

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060
"fbjs": "^0.8.16",
6161
"fbjs-scripts": "^0.6.0",
6262
"filesize": "^3.5.6",
63-
"flow-bin": "^0.57.3",
63+
"flow-bin": "^0.61.0",
6464
"git-branch": "^0.3.0",
6565
"glob": "^6.0.4",
6666
"glob-stream": "^6.1.0",

packages/react-reconciler/src/ReactFiberHostContext.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@ export default function<T, P, I, TI, HI, PI, C, CC, CX, PL>(
8282
}
8383

8484
function pushHostContext(fiber: Fiber): void {
85-
const rootInstance = requiredContext(rootInstanceStackCursor.current);
86-
const context = requiredContext(contextStackCursor.current);
85+
const rootInstance: C = requiredContext(rootInstanceStackCursor.current);
86+
const context: CX = requiredContext(contextStackCursor.current);
8787
const nextContext = getChildHostContext(context, fiber.type, rootInstance);
8888

8989
// Don't push this Fiber's context unless it's unique.

yarn.lock

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1979,9 +1979,9 @@ flat-cache@^1.2.1:
19791979
graceful-fs "^4.1.2"
19801980
write "^0.2.1"
19811981

1982-
flow-bin@^0.57.3:
1983-
version "0.57.3"
1984-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.57.3.tgz#843fb80a821b6d0c5847f7bb3f42365ffe53b27b"
1982+
flow-bin@^0.61.0:
1983+
version "0.61.0"
1984+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.61.0.tgz#d0473a8c35dbbf4de573823f4932124397d32d35"
19851985

19861986
for-in@^1.0.1:
19871987
version "1.0.2"

0 commit comments

Comments
 (0)