forked from microsoft/TypeScript
/
ambientExportDefaultErrors.types
48 lines (39 loc) · 1.18 KB
/
ambientExportDefaultErrors.types
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
=== tests/cases/compiler/consumer.ts ===
/// <reference path="./indirection.d.ts" />
/// <reference path="./indirection2.d.ts" />
import "indirect";
import "foo";
import "indirect2";
import "foo2";
=== tests/cases/compiler/foo.d.ts ===
export default 2 + 2;
>2 + 2 : number
>2 : 2
>2 : 2
export as namespace Foo;
>Foo : typeof import("tests/cases/compiler/foo")
=== tests/cases/compiler/foo2.d.ts ===
export = 2 + 2;
>2 + 2 : number
>2 : 2
>2 : 2
export as namespace Foo2;
>Foo2 : number
=== tests/cases/compiler/indirection.d.ts ===
/// <reference path="./foo.d.ts" />
declare module "indirect" {
>"indirect" : typeof import("indirect")
export default typeof Foo.default;
>typeof Foo.default : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"
>Foo.default : number
>Foo : typeof Foo
>default : number
}
=== tests/cases/compiler/indirection2.d.ts ===
/// <reference path="./foo2.d.ts" />
declare module "indirect2" {
>"indirect2" : typeof import("indirect2")
export = typeof Foo2;
>typeof Foo2 : "string" | "number" | "bigint" | "boolean" | "symbol" | "undefined" | "object" | "function"
>Foo2 : number
}