Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ast-spec): NewExpression argument can be SpreadElement now #5422

Merged
4 changes: 2 additions & 2 deletions packages/ast-spec/src/expression/NewExpression/spec.ts
@@ -1,12 +1,12 @@
import type { AST_NODE_TYPES } from '../../ast-node-types';
import type { BaseNode } from '../../base/BaseNode';
import type { TSTypeParameterInstantiation } from '../../special/TSTypeParameterInstantiation/spec';
import type { Expression } from '../../unions/Expression';
import type { CallExpressionArgument } from '../../unions/CallExpressionArgument';
import type { LeftHandSideExpression } from '../../unions/LeftHandSideExpression';

export interface NewExpression extends BaseNode {
type: AST_NODE_TYPES.NewExpression;
callee: LeftHandSideExpression;
arguments: Expression[];
arguments: CallExpressionArgument[];
typeParameters?: TSTypeParameterInstantiation;
}