diff --git a/src/compiler/types.ts b/src/compiler/types.ts index a5144eb8831..88d498695e7 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -230,6 +230,11 @@ module ts { ModuleBlock, ImportEqualsDeclaration, ExportAssignment, + ImportStatement, + ImportClause, + NamespaceImport, + NamedImports, + ImportSpecifier, // Module references ExternalModuleReference, @@ -861,6 +866,29 @@ module ts { expression?: Expression; } + export interface ImportStatement extends Statement, ModuleElement { + importClause?: ImportClause; + moduleSpecifier: StringLiteralExpression; + } + + export interface ImportClause extends Node { + defaultBinding?: Identifier; + bindings?: NamespaceImport | NamedImports; + } + + export interface NamespaceImport extends Declaration { + name: Identifier; + } + + export interface NamedImports extends Node { + elements: NodeArray; + } + + export interface ImportSpecifier extends Declaration { + propertyName?: Identifier; // Property name to be imported from module + name: Identifier; // element name to be imported in the scope + } + export interface ExportAssignment extends Statement, ModuleElement { exportName: Identifier; }