Files
tsgo/testdata/baselines/reference/submodule/conformance/tsxElementResolution4.js

30 lines
400 B
TypeScript

//// [tests/cases/conformance/jsx/tsxElementResolution4.tsx] ////
//// [file.tsx]
declare namespace JSX {
interface Element { }
interface IntrinsicElements {
div: { n: string; };
span: { m: string; };
}
}
// OK
<div n='x' />;
// OK
<span m='ok' />;
// Error
<span q='' />;
//// [file.jsx]
"use strict";
// OK
<div n='x'/>;
// OK
<span m='ok'/>;
// Error
<span q=''/>;