1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
//// [tests/cases/compiler/jsxClassAttributeResolution.tsx] ////
//// [file.tsx]
class App {}
export const a = <App></App>;
//// [package.json]
{
"name": "@types/react",
"version": "0.0.1",
"main": "",
"types": "index.d.ts",
}
//// [index.d.ts]
interface IntrinsicClassAttributesAlias<T> {
ref: T
}
declare namespace JSX {
type IntrinsicClassAttributes<T> = IntrinsicClassAttributesAlias<T>
}
//// [jsx-runtime.d.ts]
import './';
//// [jsx-dev-runtime.d.ts]
import './';
//// [file.js]
"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.a = void 0;
const jsx_runtime_1 = require("react/jsx-runtime");
class App {
}
exports.a = (0, jsx_runtime_1.jsx)(App, {});
|