18 lines
857 B
Plaintext
18 lines
857 B
Plaintext
tests/cases/conformance/jsx/tsxElementResolution16.tsx(8,1): error TS2602: JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist.
|
|
tests/cases/conformance/jsx/tsxElementResolution16.tsx(8,1): error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists
|
|
|
|
|
|
==== tests/cases/conformance/jsx/tsxElementResolution16.tsx (2 errors) ====
|
|
declare module JSX {
|
|
}
|
|
|
|
interface Obj1 {
|
|
new(n: string): {};
|
|
}
|
|
var obj1: Obj1;
|
|
<obj1 x={10} />; // Error (JSX.Element is implicit any)
|
|
~~~~~~~~~~~~~~~
|
|
!!! error TS2602: JSX element implicitly has type 'any' because the global type 'JSX.Element' does not exist.
|
|
~~~~~~~~~~~~~~~
|
|
!!! error TS7026: JSX element implicitly has type 'any' because no interface 'JSX.IntrinsicElements' exists
|
|
|