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