diff --git a/src/compiler/parser.ts b/src/compiler/parser.ts index f5c4d880072..5d585e2658a 100644 --- a/src/compiler/parser.ts +++ b/src/compiler/parser.ts @@ -5643,9 +5643,6 @@ namespace ts { } function parseImportEqualsDeclaration(fullStart: number, decorators: NodeArray, modifiers: NodeArray, identifier: ts.Identifier): ImportEqualsDeclaration { - // ImportEquals declaration of type: - // import x = require("mod"); or - // import x = M.x; const importEqualsDeclaration = createNode(SyntaxKind.ImportEqualsDeclaration, fullStart); importEqualsDeclaration.decorators = decorators; importEqualsDeclaration.modifiers = modifiers; diff --git a/src/compiler/types.ts b/src/compiler/types.ts index 7728c2b8519..a7adf28ac8e 100644 --- a/src/compiler/types.ts +++ b/src/compiler/types.ts @@ -1838,6 +1838,11 @@ namespace ts { export type ModuleReference = EntityName | ExternalModuleReference; + /** + * One of: + * - import x = require("mod"); + * - import x = M.x; + */ export interface ImportEqualsDeclaration extends DeclarationStatement { kind: SyntaxKind.ImportEqualsDeclaration; parent?: SourceFile | ModuleBlock;