* 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
47 lines
1.2 KiB
Text
47 lines
1.2 KiB
Text
=== tests/cases/conformance/externalModules/err1.d.ts ===
|
|
// Illegal, can't be in script file
|
|
export as namespace Foo;
|
|
>Foo : No type information available!
|
|
|
|
=== tests/cases/conformance/externalModules/err2.d.ts ===
|
|
// Illegal, can't be in external ambient module
|
|
declare module "Foo" {
|
|
export as namespace Bar;
|
|
>Bar : No type information available!
|
|
}
|
|
|
|
=== tests/cases/conformance/externalModules/err3.d.ts ===
|
|
// Illegal, can't have modifiers
|
|
export var p;
|
|
>p : any
|
|
|
|
static export as namespace oo1;
|
|
>oo1 : typeof "tests/cases/conformance/externalModules/err3"
|
|
|
|
declare export as namespace oo2;
|
|
>oo2 : typeof "tests/cases/conformance/externalModules/err3"
|
|
|
|
public export as namespace oo3;
|
|
>oo3 : typeof "tests/cases/conformance/externalModules/err3"
|
|
|
|
const export as namespace oo4;
|
|
>oo4 : typeof "tests/cases/conformance/externalModules/err3"
|
|
|
|
=== tests/cases/conformance/externalModules/err4.d.ts ===
|
|
// Illegal, must be at top-level
|
|
export namespace B {
|
|
>B : typeof B
|
|
|
|
export as namespace C1;
|
|
>C1 : No type information available!
|
|
}
|
|
|
|
=== tests/cases/conformance/externalModules/err5.ts ===
|
|
// Illegal, may not appear in implementation files
|
|
export var v;
|
|
>v : any
|
|
|
|
export as namespace C2;
|
|
>C2 : No type information available!
|
|
|
|
|