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 !
51 lines
852 B
Plaintext
51 lines
852 B
Plaintext
=== tests/cases/conformance/externalModules/typeOnly/a.ts ===
|
|
export default {};
|
|
>{} : {}
|
|
|
|
export const b = 0;
|
|
>b : 0
|
|
>0 : 0
|
|
|
|
export const c = 1;
|
|
>c : 1
|
|
>1 : 1
|
|
|
|
export interface D {}
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/b.ts ===
|
|
import a, { b, c, D } from "./a";
|
|
>a : {}
|
|
>b : 0
|
|
>c : 1
|
|
>D : any
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/c.ts ===
|
|
import * as a from "./a";
|
|
>a : typeof a
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/d.ts ===
|
|
export = {};
|
|
>{} : {}
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/e.ts ===
|
|
import D = require("./d");
|
|
>D : {}
|
|
|
|
import DD = require("./d");
|
|
>DD : {}
|
|
|
|
DD;
|
|
>DD : {}
|
|
|
|
=== tests/cases/conformance/externalModules/typeOnly/f.ts ===
|
|
import type a from "./a";
|
|
>a : any
|
|
|
|
import { b, c } from "./a";
|
|
>b : 0
|
|
>c : 1
|
|
|
|
b;
|
|
>b : 0
|
|
|