@@ -633,6 +633,7 @@ export interface BaseModuleSpecifier extends BaseNode {
633633export interface ImportDeclaration extends BaseModuleDeclaration {
634634 type : "ImportDeclaration" ;
635635 specifiers : Array < ImportSpecifier | ImportDefaultSpecifier | ImportNamespaceSpecifier > ;
636+ attributes : ImportAttribute [ ] ;
636637 source : Literal ;
637638}
638639
@@ -641,9 +642,16 @@ export interface ImportSpecifier extends BaseModuleSpecifier {
641642 imported : Identifier | Literal ;
642643}
643644
645+ export interface ImportAttribute extends BaseNode {
646+ type : "ImportAttribute" ;
647+ key : Identifier | Literal ;
648+ value : Literal ;
649+ }
650+
644651export interface ImportExpression extends BaseExpression {
645652 type : "ImportExpression" ;
646653 source : Expression ;
654+ options ?: Expression | null | undefined ;
647655}
648656
649657export interface ImportDefaultSpecifier extends BaseModuleSpecifier {
@@ -658,6 +666,7 @@ export interface ExportNamedDeclaration extends BaseModuleDeclaration {
658666 type : "ExportNamedDeclaration" ;
659667 declaration ?: Declaration | null | undefined ;
660668 specifiers : ExportSpecifier [ ] ;
669+ attributes : ImportAttribute [ ] ;
661670 source ?: Literal | null | undefined ;
662671}
663672
@@ -675,6 +684,7 @@ export interface ExportDefaultDeclaration extends BaseModuleDeclaration {
675684export interface ExportAllDeclaration extends BaseModuleDeclaration {
676685 type : "ExportAllDeclaration" ;
677686 exported : Identifier | Literal | null ;
687+ attributes : ImportAttribute [ ] ;
678688 source : Literal ;
679689}
680690
0 commit comments