mirror of
https://github.com/swc-project/swc.git
synced 2024-12-21 12:41:54 +03:00
18 lines
323 B
TypeScript
18 lines
323 B
TypeScript
//@filename: file.tsx
|
|
//@jsx: react
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
[s: string]: any;
|
|
}
|
|
}
|
|
declare var React: any;
|
|
|
|
// Emit ' word' in the last string
|
|
<div>word <code>code</code> word</div>;
|
|
// Same here
|
|
<div><code>code</code> word</div>;
|
|
// And here
|
|
<div><code /> word</div>;
|
|
|