mirror of
https://github.com/hanzoai/tsgo.git
synced 2026-10-30 19:37:15 +00:00
20 lines
317 B
TypeScript
20 lines
317 B
TypeScript
//// [tests/cases/conformance/jsx/tsxAttributeResolution8.tsx] ////
|
|
|
|
//// [file.tsx]
|
|
declare namespace JSX {
|
|
interface Element { }
|
|
interface IntrinsicElements {
|
|
test1: {x: string};
|
|
}
|
|
}
|
|
|
|
var x: any;
|
|
// Should be OK
|
|
<test1 {...x} />
|
|
|
|
//// [file.jsx]
|
|
"use strict";
|
|
var x;
|
|
// Should be OK
|
|
<test1 {...x}/>;
|