Files
tsgo/testdata/tests/cases/compiler/jsxImportSourceCheckJs.ts
42bb8333a6 Recognize jsxImportSource namespaces in checked JavaScript (#4694)
Co-authored-by: copilot-swe-agent[bot] <[email protected]>
Co-authored-by: jakebailey <[email protected]>
2026-07-21 18:11:15 +00:00

18 lines
317 B
TypeScript

// @allowJs: true
// @checkJs: true
// @jsx: react-jsx
// @jsxImportSource: preact
// @noEmit: true
// @strict: true
// @filename: /node_modules/preact/jsx-runtime/index.d.ts
export namespace JSX {
interface Element {}
interface IntrinsicElements {
div: {};
}
}
// @filename: /index.js
<div />;