Skip to content

Commit

Permalink
chore: make flow happy
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Jan 11, 2020
1 parent 3991864 commit e2b9d15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/parser/expression.js
Expand Up @@ -1787,7 +1787,7 @@ export default class ExpressionParser extends LValParser {
}

parsePropertyName(
prop: N.ObjectOrClassMember | N.TsNamedTypeElementBase,
prop: N.ObjectOrClassMember | N.ClassMember | N.TsNamedTypeElementBase,
isPrivateNameAllowed: boolean,
): N.Expression | N.Identifier {
if (this.eat(tt.bracketL)) {
Expand Down
2 changes: 1 addition & 1 deletion packages/babel-parser/src/plugins/flow.js
Expand Up @@ -2265,7 +2265,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>
}

parsePropertyName(
node: N.ObjectOrClassMember | N.TsNamedTypeElementBase,
node: N.ObjectOrClassMember | N.ClassMember | N.TsNamedTypeElementBase,
isPrivateNameAllowed: boolean,
): N.Identifier {
const variance = this.flowParseVariance();
Expand Down

0 comments on commit e2b9d15

Please sign in to comment.