8610ff5ebe
* Add compiler option * Require es2015+ * Do not elide any imports or exports in preserve-exact * Add errors for writing imports/exports that reference elided names * Improve diagnostics wording * Update API baselines * Redo as noEraslingImportedNames * Update option category * Update baselines * Lint * Fix up transformer comments * Fix errors from merge * Update other error code baseline * Rename to "preserveValueImports" * Clean up, reword diagnostics * Update API baselines * Update other baseline affected by error message reword * Update tsconfig baselines * Add debug assertion instead of !
47 lines
1.2 KiB
Plaintext
47 lines
1.2 KiB
Plaintext
=== tests/cases/conformance/externalModules/typeOnly/a.ts ===
|
|
export default {};
|
|
export const b = 0;
|
|
>b : Symbol(b, Decl(a.ts, 1, 12))
|
|
|
|
export const c = 1;
|
|
>c : Symbol(c, Decl(a.ts, 2, 12))
|
|
|
|
export interface D {}
|
|
>D : Symbol(D, Decl(a.ts, 2, 19))
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/b.ts ===
|
|
import a, { b, c, D } from "./a";
|
|
>a : Symbol(a, Decl(b.ts, 0, 6))
|
|
>b : Symbol(b, Decl(b.ts, 0, 11))
|
|
>c : Symbol(c, Decl(b.ts, 0, 14))
|
|
>D : Symbol(D, Decl(b.ts, 0, 17))
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/c.ts ===
|
|
import * as a from "./a";
|
|
>a : Symbol(a, Decl(c.ts, 0, 6))
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/d.ts ===
|
|
export = {};
|
|
No type information for this code.
|
|
No type information for this code.=== tests/cases/conformance/externalModules/typeOnly/e.ts ===
|
|
import D = require("./d");
|
|
>D : Symbol(D, Decl(e.ts, 0, 0))
|
|
|
|
import DD = require("./d");
|
|
>DD : Symbol(DD, Decl(e.ts, 0, 26))
|
|
|
|
DD;
|
|
>DD : Symbol(DD, Decl(e.ts, 0, 26))
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/f.ts ===
|
|
import type a from "./a";
|
|
>a : Symbol(a, Decl(f.ts, 0, 6))
|
|
|
|
import { b, c } from "./a";
|
|
>b : Symbol(b, Decl(f.ts, 1, 8))
|
|
>c : Symbol(c, Decl(f.ts, 1, 11))
|
|
|
|
b;
|
|
>b : Symbol(b, Decl(f.ts, 1, 8))
|
|
|