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 21, 2021
1 parent 9c67859 commit c15da67
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 c15da67

Please sign in to comment.