TypeScript/tests/baselines/reference/tsxExternalModuleEmit2.symbols
2015-08-21 14:43:14 -07:00

32 lines
821 B
Plaintext

=== tests/cases/conformance/jsx/modules.d.ts ===
declare module 'mod' {
var y: any;
>y : Symbol(y, Decl(modules.d.ts, 2, 5))
export default y;
>y : Symbol(y, Decl(modules.d.ts, 2, 5))
}
=== tests/cases/conformance/jsx/app.tsx ===
import Main from 'mod';
>Main : Symbol(Main, Decl(app.tsx, 0, 6))
declare var Foo, React;
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))
>React : Symbol(React, Decl(app.tsx, 1, 16))
// Should see mod_1['default'] in emit here
<Foo handler={Main}></Foo>;
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))
>handler : Symbol(unknown)
>Main : Symbol(Main, Decl(app.tsx, 0, 6))
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))
// Should see mod_1['default'] in emit here
<Foo {...Main}></Foo>;
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))
>Foo : Symbol(Foo, Decl(app.tsx, 1, 11))