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

23 lines
338 B
TypeScript

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