Skip to content

Commit

Permalink
fixed flowcheck errors
Browse files Browse the repository at this point in the history
  • Loading branch information
rickbutton committed Jan 10, 2020
1 parent 5fc87d6 commit f792ffe
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/expression.js
Expand Up @@ -1514,7 +1514,7 @@ export default class ExpressionParser extends LValParser {
parseObj<T: N.ObjectPattern | N.ObjectExpression>(
close: TokenType,
isPattern: boolean,
isRecord: boolean,
isRecord?: ?boolean,
refShorthandDefaultPos?: ?Pos,
): T {
const propHash: any = Object.create(null);
Expand Down
2 changes: 2 additions & 0 deletions packages/babel-parser/src/parser/lval.js
Expand Up @@ -38,7 +38,9 @@ export default class LValParser extends NodeUtils {
refNeedsArrowPos?: ?Pos,
) => Expression;
+parseObj: <T: ObjectPattern | ObjectExpression>(
close: TokenType,
isPattern: boolean,
isRecord?: ?boolean,
refShorthandDefaultPos?: ?Pos,
) => T;
// Forward-declaration: defined in statement.js
Expand Down

0 comments on commit f792ffe

Please sign in to comment.