Skip to content

Commit

Permalink
fix(ast-spec): correct AwaitExpression.argument type (#4880)
Browse files Browse the repository at this point in the history
  • Loading branch information
ddubrava committed May 2, 2022
1 parent 6e1016c commit 3ec5f53
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions packages/ast-spec/src/expression/AwaitExpression/spec.ts
@@ -1,14 +1,8 @@
import type { AST_NODE_TYPES } from '../../ast-node-types';
import type { BaseNode } from '../../base/BaseNode';
import type { LeftHandSideExpression } from '../../unions/LeftHandSideExpression';
import type { UnaryExpression } from '../UnaryExpression/spec';
import type { UpdateExpression } from '../UpdateExpression/spec';
import type { Expression } from '../../unions/Expression';

export interface AwaitExpression extends BaseNode {
type: AST_NODE_TYPES.AwaitExpression;
argument:
| AwaitExpression
| LeftHandSideExpression
| UnaryExpression
| UpdateExpression;
argument: Expression;
}

0 comments on commit 3ec5f53

Please sign in to comment.