Skip to content

Commit 861844d

Browse files
nevirbradzacher
authored andcommitted
fix(typescript-estree): allow expressions in ExportDefaultDeclaration (#593)
1 parent 83c1f5a commit 861844d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Diff for: packages/typescript-estree/src/ts-estree/ts-estree.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -659,7 +659,7 @@ export interface ExportAllDeclaration extends BaseNode {
659659

660660
export interface ExportDefaultDeclaration extends BaseNode {
661661
type: AST_NODE_TYPES.ExportDefaultDeclaration;
662-
declaration: ExportDeclaration;
662+
declaration: ExportDeclaration | Expression;
663663
}
664664

665665
export interface ExportNamedDeclaration extends BaseNode {

0 commit comments

Comments
 (0)