16 lines
234 B
TypeScript
16 lines
234 B
TypeScript
|
//// [tsxElementResolution14.tsx]
|
||
|
declare module JSX {
|
||
|
interface Element { }
|
||
|
}
|
||
|
|
||
|
interface Obj1 {
|
||
|
new(n: string): {};
|
||
|
}
|
||
|
var obj1: Obj1;
|
||
|
<obj1 x={10} />; // OK
|
||
|
|
||
|
|
||
|
//// [tsxElementResolution14.jsx]
|
||
|
var obj1;
|
||
|
<obj1 x={10}/>; // OK
|