Files
tsgo/testdata/baselines/reference/submodule/conformance/tsxElementResolution15.js

20 lines
391 B
TypeScript

//// [tests/cases/conformance/jsx/tsxElementResolution15.tsx] ////
//// [file.tsx]
declare namespace JSX {
interface Element { }
interface ElementAttributesProperty { pr1: any; pr2: any; }
interface IntrinsicElements { }
}
interface Obj1type {
new(n: string): {};
}
declare var Obj1: Obj1type;
<Obj1 x={10} />; // Error
//// [file.jsx]
"use strict";
<Obj1 x={10}/>; // Error