File tree 1 file changed +28
-0
lines changed
1 file changed +28
-0
lines changed Original file line number Diff line number Diff line change @@ -230,6 +230,11 @@ module ts {
230
230
ModuleBlock ,
231
231
ImportEqualsDeclaration ,
232
232
ExportAssignment ,
233
+ ImportStatement ,
234
+ ImportClause ,
235
+ NamespaceImport ,
236
+ NamedImports ,
237
+ ImportSpecifier ,
233
238
234
239
// Module references
235
240
ExternalModuleReference ,
@@ -861,6 +866,29 @@ module ts {
861
866
expression ?: Expression ;
862
867
}
863
868
869
+ export interface ImportStatement extends Statement , ModuleElement {
870
+ importClause ?: ImportClause ;
871
+ moduleSpecifier : StringLiteralExpression ;
872
+ }
873
+
874
+ export interface ImportClause extends Node {
875
+ defaultBinding ?: Identifier ;
876
+ bindings ?: NamespaceImport | NamedImports ;
877
+ }
878
+
879
+ export interface NamespaceImport extends Declaration {
880
+ name : Identifier ;
881
+ }
882
+
883
+ export interface NamedImports extends Node {
884
+ elements : NodeArray < ImportSpecifier > ;
885
+ }
886
+
887
+ export interface ImportSpecifier extends Declaration {
888
+ propertyName ?: Identifier ; // Property name to be imported from module
889
+ name : Identifier ; // element name to be imported in the scope
890
+ }
891
+
864
892
export interface ExportAssignment extends Statement , ModuleElement {
865
893
exportName : Identifier ;
866
894
}
You can’t perform that action at this time.
0 commit comments