Skip to content

Commit

Permalink
Flow: Upgrade flow to 0.111.1 and fix flow errors
Browse files Browse the repository at this point in the history
Test plan: `npm ci && make test`
  • Loading branch information
ariabuckles committed Nov 3, 2019
1 parent 8ea273a commit d26a295
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
"@types/react-dom": ">=16.0.0",
"@types/underscore": ">=1.4.4",
"express": "^4.16.4",
"flow-bin": "^0.94.0",
"flow-bin": "^0.111.1",
"flow-typed": "^2.5.1",
"mocha": "^6.2.0",
"nyc": "^14.1.1",
Expand Down
4 changes: 2 additions & 2 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ type State = {
type ReactElement = React$Element<any>;
type ReactElements = React$Node;
type MatchFunction = (
type MatchFunction = { regex?: RegExp } & (
source: string,
state: State,
prevCapture: string
Expand Down Expand Up @@ -1790,7 +1790,7 @@ var ruleOutput = function/* :: <Rule : Object> */(
/** @type {SimpleMarkdown.NodeOutput<any>} */
var nestedRuleOutput /* : NodeOutput<any> */ = function(
ast /* : SingleASTNode */,
outputFunc /* : NodeOutput<any> */,
outputFunc /* : Output<any> */,
state /* : State */
) {
return rules[ast.type][property](ast, outputFunc, state);
Expand Down

0 comments on commit d26a295

Please sign in to comment.