1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23
|
//// [tests/cases/conformance/jsx/tsxElementResolution1.tsx] ////
=== file.tsx ===
declare module JSX {
>JSX : Symbol(JSX, Decl(file.tsx, 0, 0))
interface Element { }
>Element : Symbol(Element, Decl(file.tsx, 0, 20))
interface IntrinsicElements {
>IntrinsicElements : Symbol(IntrinsicElements, Decl(file.tsx, 1, 22))
div: any
>div : Symbol(IntrinsicElements.div, Decl(file.tsx, 2, 30))
}
}
// OK
<div />;
>div : Symbol(JSX.IntrinsicElements.div, Decl(file.tsx, 2, 30))
// Fail
<span />;
|