mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
391 B
TypeScript
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
|