mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
287 B
TypeScript
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 />;
|