//// [tsxElementResolution8.tsx]
declare module JSX {
interface Element { }
interface IntrinsicElements { }
}
// Error
var Div = 3;
;
// OK
function Fact(): any { return null; }
// Error
function Fnum(): number{ return 42; }
interface Obj1 {
new(): {};
(): number;
}
var Obj1: Obj1;
; // OK, prefer construct signatures
interface Obj2 {
(): number;
}
var Obj2: Obj2;
; // Error
interface Obj3 {
}
var Obj3: Obj3;
; // Error
//// [tsxElementResolution8.jsx]
// Error
var Div = 3;
;
// OK
function Fact() { return null; }
;
// Error
function Fnum() { return 42; }
;
var Obj1;
; // OK, prefer construct signatures
var Obj2;
; // Error
var Obj3;
; // Error