22 lines
342 B
TypeScript
22 lines
342 B
TypeScript
//// [a.tsx]
|
|
declare const React: any
|
|
declare namespace JSX {
|
|
interface IntrinsicElements {
|
|
[k: string]: any
|
|
}
|
|
}
|
|
|
|
const a = (
|
|
<public-foo></public-foo>
|
|
);
|
|
|
|
const b = (
|
|
<public></public>
|
|
);
|
|
|
|
|
|
//// [a.js]
|
|
"use strict";
|
|
var a = (React.createElement("public-foo", null));
|
|
var b = (React.createElement("public", null));
|