mirror of
https://github.com/swc-project/swc.git
synced 2024-12-20 20:22:26 +03:00
19 lines
298 B
TypeScript
19 lines
298 B
TypeScript
|
//@filename: file.tsx
|
||
|
//@jsx: react
|
||
|
declare module JSX {
|
||
|
interface Element { }
|
||
|
interface IntrinsicElements {
|
||
|
[s: string]: any;
|
||
|
}
|
||
|
}
|
||
|
declare var React: any;
|
||
|
|
||
|
var p: any;
|
||
|
var openClosed1 = <div>
|
||
|
|
||
|
{blah}
|
||
|
|
||
|
</div>;
|
||
|
|
||
|
// Should emit React.__spread({}, p, {x: 0})
|
||
|
var spread1 = <div {...p} x={0} />;
|