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