mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
23 lines
295 B
TypeScript
23 lines
295 B
TypeScript
//// [tests/cases/conformance/jsx/tsxElementResolution2.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
declare namespace JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
[x: string]: any;
|
|
}
|
|
}
|
|
|
|
// OK
|
|
<div />;
|
|
|
|
// OK
|
|
<span />;
|
|
|
|
//// [file.jsx]
|
|
"use strict";
|
|
// OK
|
|
<div />;
|
|
// OK
|
|
<span />;
|