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