TypeScript/tests/cases/conformance/jsx/tsxElementResolution4.tsx
2015-06-18 14:03:43 -07:00

19 lines
261 B
TypeScript

//@filename: file.tsx
//@jsx: preserve
declare module JSX {
interface Element { }
interface IntrinsicElements {
div: { n: string; };
span: { m: string; };
}
}
// OK
<div n='x' />;
// OK
<span m='ok' />;
// Error
<span q='' />;