Skip to content

Commit

Permalink
refactor: avoid string comparison
Browse files Browse the repository at this point in the history
  • Loading branch information
JLHwung committed Sep 17, 2021
1 parent 698564e commit 5a1ca81
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/plugins/typescript/index.js
Expand Up @@ -2364,7 +2364,7 @@ export default (superClass: Class<Parser>): Class<Parser> =>

// export default interface allowed in:
// https://github.com/Microsoft/TypeScript/pull/16040
if (this.state.value === "interface") {
if (this.match(tt._interface)) {
const interfaceNode = this.startNode();
this.next();
const result = this.tsParseInterfaceDeclaration(interfaceNode);
Expand Down

0 comments on commit 5a1ca81

Please sign in to comment.