12 lines
197 B
TypeScript
12 lines
197 B
TypeScript
|
//@filename: file.tsx
|
||
|
//@jsx: preserve
|
||
|
declare module JSX {
|
||
|
interface Element { }
|
||
|
interface IntrinsicElements {
|
||
|
test1: {x: string};
|
||
|
}
|
||
|
}
|
||
|
|
||
|
var x: any;
|
||
|
// Should be OK
|
||
|
<test1 {...x} />
|