swc/crates/swc_ecma_parser/tests/tsc/tsxElementResolution15.tsx
2022-02-04 17:08:38 +09:00

14 lines
270 B
TypeScript

//@filename: file.tsx
//@jsx: preserve
declare module JSX {
interface Element { }
interface ElementAttributesProperty { pr1: any; pr2: any; }
interface IntrinsicElements { }
}
interface Obj1type {
new(n: string): {};
}
var Obj1: Obj1type;
<Obj1 x={10} />; // Error