TypeScript/tests/cases/conformance/jsx/tsxReactEmit5.tsx

21 lines
403 B
TypeScript
Raw Normal View History

//@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
2015-08-27 00:28:21 +02:00
// and React.__spread
2016-11-08 18:19:04 +01:00
var foo: any;
2015-08-27 00:28:21 +02:00
var spread1 = <div x='' {...foo} y='' />;