mirror of
https://github.com/swc-project/swc.git
synced 2024-11-24 10:12:42 +03:00
21 lines
383 B
TypeScript
21 lines
383 B
TypeScript
//@jsx: react
|
|
//@module: commonjs
|
|
|
|
//@filename: file.tsx
|
|
declare module JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
[s: string]: any;
|
|
}
|
|
}
|
|
|
|
//@filename: test.d.ts
|
|
export var React;
|
|
|
|
//@filename: react-consumer.tsx
|
|
import {React} from "./test";
|
|
// Should emit test_1.React.createElement
|
|
// and React.__spread
|
|
var foo: any;
|
|
var spread1 = <div x='' {...foo} y='' />;
|