TypeScript/tests/baselines/reference/ambientExportDefaultErrors.types
Wesley Wigham 5353475fce Always collect type and symbol baselines (#18621)
* Always generate type & symbol baselines

* Accept changed shadowed baselines

* Accept brand new type and symbol baselines

* Allow `getTypeAtLocation` to return undefined in the type writer

* Accept baselines which had missing type information

* Bind container for dynamically names enum members so they may be printed

* Accept type/symbol baselines for enums with computed members

* First pass at reducing typeWriter memory overhead

* Use generators to allow for type and symbol baselines with no cache

* Accept new baselines for tests whose output was fixed by better newline splitting

* Hard cap on number of declarations printed, cache declaration print text

* handle differing newlines better still to handle RWC newlines

* Lower abridging count, accept abridged baselines

* Limit max RWC error output size, limit RWC type and symbol baseline input size

* Move skip logic into type and symbol baseliner to streamline error handling

* Accept removal of empty baselines

* Canonicalize path earlier to handle odd paths in input files

* Do canonicalization earlier still, also ensure parallel perf profiles for different targets do not trample one another

* No need to pathify again
2017-09-22 15:52:04 -07:00

44 lines
1.3 KiB
Plaintext

=== tests/cases/compiler/consumer.ts ===
/// <reference path="./indirection.d.ts" />
No type information for this code./// <reference path="./indirection2.d.ts" />
No type information for this code.import "indirect";
No type information for this code.import "foo";
No type information for this code.import "indirect2";
No type information for this code.import "foo2";
No type information for this code.=== tests/cases/compiler/foo.d.ts ===
export default 2 + 2;
>2 + 2 : number
>2 : 2
>2 : 2
export as namespace Foo;
>Foo : typeof "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" {
export default typeof Foo.default;
>typeof Foo.default : "string" | "number" | "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" {
export = typeof Foo2;
>typeof Foo2 : "string" | "number" | "boolean" | "symbol" | "undefined" | "object" | "function"
>Foo2 : number
}