Skip to content

Commit 0559151

Browse files
Merge pull request #21990 from Microsoft/documentExportAssignment
Document 'ExportAssignment' slightly.
2 parents b00c13b + 1b3e6a0 commit 0559151

File tree

3 files changed

+12
-0
lines changed

3 files changed

+12
-0
lines changed

src/compiler/types.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2220,6 +2220,10 @@ namespace ts {
22202220

22212221
export type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier;
22222222

2223+
/**
2224+
* This is either an `export =` or an `export default` declaration.
2225+
* Unless `isExportEquals` is set, this node was parsed as an `export default`.
2226+
*/
22232227
export interface ExportAssignment extends DeclarationStatement {
22242228
kind: SyntaxKind.ExportAssignment;
22252229
parent?: SourceFile;

tests/baselines/reference/api/tsserverlibrary.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,10 @@ declare namespace ts {
14121412
name: Identifier;
14131413
}
14141414
type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier;
1415+
/**
1416+
* This is either an `export =` or an `export default` declaration.
1417+
* Unless `isExportEquals` is set, this node was parsed as an `export default`.
1418+
*/
14151419
interface ExportAssignment extends DeclarationStatement {
14161420
kind: SyntaxKind.ExportAssignment;
14171421
parent?: SourceFile;

tests/baselines/reference/api/typescript.d.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1412,6 +1412,10 @@ declare namespace ts {
14121412
name: Identifier;
14131413
}
14141414
type ImportOrExportSpecifier = ImportSpecifier | ExportSpecifier;
1415+
/**
1416+
* This is either an `export =` or an `export default` declaration.
1417+
* Unless `isExportEquals` is set, this node was parsed as an `export default`.
1418+
*/
14151419
interface ExportAssignment extends DeclarationStatement {
14161420
kind: SyntaxKind.ExportAssignment;
14171421
parent?: SourceFile;

0 commit comments

Comments
 (0)