mirror of
https://github.com/swc-project/swc.git
synced 2024-12-30 00:52:29 +03:00
19 lines
256 B
TypeScript
19 lines
256 B
TypeScript
|
// @strict: true, false
|
||
|
// @jsx: react
|
||
|
// @filename: a.tsx
|
||
|
|
||
|
declare const React: any
|
||
|
declare namespace JSX {
|
||
|
interface IntrinsicElements {
|
||
|
[k: string]: any
|
||
|
}
|
||
|
}
|
||
|
|
||
|
const a = (
|
||
|
<public-foo></public-foo>
|
||
|
);
|
||
|
|
||
|
const b = (
|
||
|
<public></public>
|
||
|
);
|