mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
25 lines
500 B
Plaintext
25 lines
500 B
Plaintext
//// [tests/cases/compiler/exportEqualsDefaultProperty.ts] ////
|
|
|
|
=== exp.ts ===
|
|
var x = {
|
|
>x : Symbol(x, Decl(exp.ts, 0, 3))
|
|
|
|
"greeting": "hello, world",
|
|
>"greeting" : Symbol("greeting", Decl(exp.ts, 0, 9))
|
|
|
|
"default": 42
|
|
>"default" : Symbol("default", Decl(exp.ts, 1, 31))
|
|
|
|
};
|
|
|
|
export = x
|
|
>x : Symbol(x, Decl(exp.ts, 0, 3))
|
|
|
|
=== imp.ts ===
|
|
import foo from "./exp";
|
|
>foo : Symbol(foo, Decl(imp.ts, 0, 6))
|
|
|
|
foo.toExponential(2);
|
|
>foo : Symbol(foo, Decl(imp.ts, 0, 6))
|
|
|