TypeScript/tests/baselines/reference/tsxElementResolution14.types
2015-06-18 14:04:11 -07:00

24 lines
350 B
Plaintext

=== 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