TypeScript/tests/baselines/reference/tsxElementResolution3.errors.txt
2015-06-18 14:04:11 -07:00

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; }'.