Skip to content

Commit

Permalink
fix(experimental-utils): fix isAwaitKeyword predicate in ast-utils
Browse files Browse the repository at this point in the history
  • Loading branch information
MichaelDeBoey committed May 19, 2021
1 parent 6291f38 commit adae4aa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/experimental-utils/src/ast-utils/predicates.ts
Expand Up @@ -206,7 +206,7 @@ function isAwaitExpression(
*/
function isAwaitKeyword(
node: TSESTree.Token | undefined | null,
): node is TSESTree.KeywordToken & { value: 'await' } {
): node is TSESTree.IdentifierToken & { value: 'await' } {
return node?.type === AST_TOKEN_TYPES.Identifier && node.value === 'await';
}

Expand Down

0 comments on commit adae4aa

Please sign in to comment.