TypeScript/tests/baselines/reference/exportsAndImports4.types
2016-09-01 14:25:44 -07:00

68 lines
1.1 KiB
Plaintext

=== tests/cases/conformance/es6/modules/t3.ts ===
import a = require("./t1");
>a : typeof a
a.default;
>a.default : "hello"
>a : typeof a
>default : "hello"
import b from "./t1";
>b : "hello"
b;
>b : "hello"
import * as c from "./t1";
>c : typeof a
c.default;
>c.default : "hello"
>c : typeof a
>default : "hello"
import { default as d } from "./t1";
>default : "hello"
>d : "hello"
d;
>d : "hello"
import e1, * as e2 from "./t1";
>e1 : "hello"
>e2 : typeof a
e1;
>e1 : "hello"
e2.default;
>e2.default : "hello"
>e2 : typeof a
>default : "hello"
import f1, { default as f2 } from "./t1";
>f1 : "hello"
>default : "hello"
>f2 : "hello"
f1;
>f1 : "hello"
f2;
>f2 : "hello"
export { a, b, c, d, e1, e2, f1, f2 };
>a : typeof a
>b : "hello"
>c : typeof a
>d : "hello"
>e1 : "hello"
>e2 : typeof a
>f1 : "hello"
>f2 : "hello"
=== tests/cases/conformance/es6/modules/t1.ts ===
No type information for this code.export default "hello";
No type information for this code.
No type information for this code.