1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
=== /node_modules/@types/a/index.d.ts ===
declare var a: a.Foo;
>a : import("/node_modules/@types/a/index.d.ts").Foo
>a : any
declare namespace a {
interface Foo {}
}
export = a;
>a : import("/node_modules/@types/a/index.d.ts").Foo
=== /node_modules/@types/b/index.d.ts ===
import * as a from 'a';
>a : a.Foo
declare module 'a' {
>'a' : Foo
namespace Test {}
interface Foo {
Test: null;
>Test : null
>null : null
}
}
=== tests/cases/compiler/foo.tsx ===
import { Test } from 'a';
>Test : null
const Foo = (<h1></h1>);
>Foo : JSX.Element
>(<h1></h1>) : JSX.Element
><h1></h1> : JSX.Element
>h1 : any
>h1 : any
|