mirror of
https://github.com/swc-project/swc.git
synced 2024-12-18 19:21:33 +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} />; |