Skip to content

Commit 5d21db9

Browse files
committed
Test baselines after asynchronous alias declaration writing
1 parent 875d0c0 commit 5d21db9

File tree

568 files changed

+2066
-734
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

568 files changed

+2066
-734
lines changed

tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.errors.txt

Lines changed: 0 additions & 19 deletions
This file was deleted.

tests/baselines/reference/declFileAmbientExternalModuleWithSingleExportedModule.js

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,27 @@ declare module "SubModule" {
3030
}
3131
}
3232
}
33+
//// [declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts]
34+
/// <reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts' />
35+
import SubModule = require('SubModule');
36+
export declare var x: SubModule.m.m3.c;
37+
38+
39+
//// [DtsFileErrors]
40+
41+
42+
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_1.d.ts (1 errors) ====
43+
/// <reference path='declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts' />
44+
import SubModule = require('SubModule');
45+
export declare var x: SubModule.m.m3.c;
46+
~~~~~~~~~~~~~~~~
47+
!!! Module '"SubModule".m.m3' has no exported member 'c'.
48+
49+
==== tests/cases/compiler/declFileAmbientExternalModuleWithSingleExportedModule_0.d.ts (0 errors) ====
50+
declare module "SubModule" {
51+
module m {
52+
module m3 {
53+
}
54+
}
55+
}
56+

tests/baselines/reference/declFileExportAssignmentOfGenericInterface.errors.txt

Lines changed: 0 additions & 13 deletions
This file was deleted.

tests/baselines/reference/declFileExportAssignmentOfGenericInterface.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,3 +27,6 @@ interface Foo<T> {
2727
a: string;
2828
}
2929
export = Foo;
30+
//// [declFileExportAssignmentOfGenericInterface_1.d.ts]
31+
import a = require('declFileExportAssignmentOfGenericInterface_0');
32+
export declare var x: a<a<string>>;

tests/baselines/reference/declFileImportModuleWithExportAssignment.errors.txt

Lines changed: 0 additions & 29 deletions
This file was deleted.

tests/baselines/reference/declFileImportModuleWithExportAssignment.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,10 @@ declare var m2: {
5151
test2(): m2.connectModule;
5252
};
5353
export = m2;
54+
//// [declFileImportModuleWithExportAssignment_1.d.ts]
55+
import a1 = require("declFileImportModuleWithExportAssignment_0");
56+
export declare var a: {
57+
(): a1.connectExport;
58+
test1: a1.connectModule;
59+
test2(): a1.connectModule;
60+
};

tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.errors.txt

Lines changed: 0 additions & 16 deletions
This file was deleted.

tests/baselines/reference/declFileImportedTypeUseInTypeArgPosition.js

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,3 +19,31 @@ var List = (function () {
1919
}
2020
return List;
2121
})();
22+
23+
24+
//// [declFileImportedTypeUseInTypeArgPosition.d.ts]
25+
declare class List<T> {
26+
}
27+
declare module 'mod1' {
28+
}
29+
declare module 'moo' {
30+
import x = require('mod1');
31+
var p: List<x.Foo>;
32+
}
33+
34+
35+
//// [DtsFileErrors]
36+
37+
38+
==== tests/cases/compiler/declFileImportedTypeUseInTypeArgPosition.d.ts (1 errors) ====
39+
declare class List<T> {
40+
}
41+
declare module 'mod1' {
42+
}
43+
declare module 'moo' {
44+
import x = require('mod1');
45+
var p: List<x.Foo>;
46+
~~~~~
47+
!!! Module ''mod1'' has no exported member 'Foo'.
48+
}
49+

tests/baselines/reference/declFileInternalAliases.errors.txt

Lines changed: 0 additions & 15 deletions
This file was deleted.

tests/baselines/reference/declFileInternalAliases.js

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,3 +32,18 @@ var m2;
3232
m2.x = m.c;
3333
m2.d = new m2.x();
3434
})(m2 || (m2 = {}));
35+
36+
37+
//// [declFileInternalAliases.d.ts]
38+
declare module m {
39+
class c {
40+
}
41+
}
42+
declare module m1 {
43+
import x = m.c;
44+
var d: x;
45+
}
46+
declare module m2 {
47+
export import x = m.c;
48+
var d: x;
49+
}

0 commit comments

Comments
 (0)