36 lines
622 B
TypeScript
36 lines
622 B
TypeScript
//// [index.tsx]
|
|
export class X {
|
|
static jsx() {
|
|
return document.createElement('p');
|
|
}
|
|
}
|
|
|
|
export namespace X {
|
|
export namespace JSX {
|
|
export type IntrinsicElements = {
|
|
[other: string]: any;
|
|
};
|
|
}
|
|
}
|
|
|
|
function A() {
|
|
return (<p>Hello</p>);
|
|
}
|
|
|
|
//// [index.js]
|
|
"use strict";
|
|
exports.__esModule = true;
|
|
exports.X = void 0;
|
|
var X = /** @class */ (function () {
|
|
function X() {
|
|
}
|
|
X.jsx = function () {
|
|
return document.createElement('p');
|
|
};
|
|
return X;
|
|
}());
|
|
exports.X = X;
|
|
function A() {
|
|
return (X.jsx("p", null, "Hello"));
|
|
}
|