Skip to content

Commit

Permalink
Fix flow
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolo-ribaudo committed May 17, 2022
1 parent 10e39ee commit b7e1493
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/babel-parser/src/plugins/typescript/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ function assert(x: boolean): void {
}
}

function tsTokenCanStartExpression(token: number) {
function tsTokenCanStartExpression(token: TokenType) {
// tsc consiers binary operators as "can start expression" tokens:
// https://github.com/microsoft/TypeScript/blob/eca1b4/src/compiler/parser.ts#L4260-L4266
return tokenCanStartExpression(token) || tokenIsBinaryOperator(token);
Expand Down

0 comments on commit b7e1493

Please sign in to comment.