TypeScript/tests/baselines/reference/tsxElementResolution14.types

24 lines
350 B
Plaintext
Raw Normal View History

2015-06-18 23:04:11 +02:00
=== tests/cases/conformance/jsx/tsxElementResolution14.tsx ===
declare module JSX {
>JSX : any
interface Element { }
>Element : Element
}
interface Obj1 {
>Obj1 : Obj1
new(n: string): {};
>n : string
}
var obj1: Obj1;
>obj1 : Obj1
>Obj1 : Obj1
<obj1 x={10} />; // OK
><obj1 x={10} /> : JSX.Element
>obj1 : Obj1
>x : any