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

23 lines
287 B
TypeScript

//// [tests/cases/conformance/jsx/tsxElementResolution1.tsx] ////
//// [file.tsx]
declare namespace JSX {
interface Element { }
interface IntrinsicElements {
div: any
}
}
// OK
<div />;
// Fail
<span />;
//// [file.jsx]
"use strict";
// OK
<div />;
// Fail
<span />;