21 lines
735 B
Plaintext
21 lines
735 B
Plaintext
tests/cases/conformance/jsx/tsxElementResolution3.tsx(12,1): error TS2324: Property 'n' is missing in type '{ n: string; }'.
|
|
tests/cases/conformance/jsx/tsxElementResolution3.tsx(12,7): error TS2339: Property 'w' does not exist on type '{ n: string; }'.
|
|
|
|
|
|
==== tests/cases/conformance/jsx/tsxElementResolution3.tsx (2 errors) ====
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
[x: string]: { n: string; };
|
|
}
|
|
}
|
|
|
|
// OK
|
|
<div n='x' />;
|
|
|
|
// Error
|
|
<span w='err' />;
|
|
~~~~~~~~~~~~~~~~
|
|
!!! error TS2324: Property 'n' is missing in type '{ n: string; }'.
|
|
~
|
|
!!! error TS2339: Property 'w' does not exist on type '{ n: string; }'. |