TypeScript/tests/baselines/reference/tsxElementResolution13.types
2015-08-21 14:43:14 -07:00

30 lines
512 B
Plaintext

=== tests/cases/conformance/jsx/tsxElementResolution13.tsx ===
declare module JSX {
>JSX : any
interface Element { }
>Element : Element
interface ElementAttributesProperty { pr1: any; pr2: any; }
>ElementAttributesProperty : ElementAttributesProperty
>pr1 : any
>pr2 : any
}
interface Obj1 {
>Obj1 : Obj1
new(n: string): any;
>n : string
}
var obj1: Obj1;
>obj1 : Obj1
>Obj1 : Obj1
<obj1 x={10} />; // Error
><obj1 x={10} /> : JSX.Element
>obj1 : Obj1
>x : any
>10 : number