20 lines
208 B
TypeScript
20 lines
208 B
TypeScript
//// [file.tsx]
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
[x: string]: any;
|
|
}
|
|
}
|
|
|
|
// OK
|
|
<div />;
|
|
|
|
// OK
|
|
<span />;
|
|
|
|
//// [file.jsx]
|
|
// OK
|
|
<div />;
|
|
// OK
|
|
<span />;
|