Skip to content

Commit

Permalink
fix(ast-spec): add SpreadElement to ArrayExpression.elements (#5025)
Browse files Browse the repository at this point in the history
  • Loading branch information
Josh-Cena authored May 20, 2022
1 parent 9e97a11 commit 9f3121b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion packages/ast-spec/src/expression/ArrayExpression/spec.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
import type { AST_NODE_TYPES } from '../../ast-node-types';
import type { BaseNode } from '../../base/BaseNode';
import type { SpreadElement } from '../../element/SpreadElement/spec';
import type { Expression } from '../../unions/Expression';

export interface ArrayExpression extends BaseNode {
type: AST_NODE_TYPES.ArrayExpression;
elements: Expression[];
elements: (Expression | SpreadElement)[];
}

0 comments on commit 9f3121b

Please sign in to comment.