45 lines
854 B
Text
45 lines
854 B
Text
|
=== tests/cases/conformance/jsx/tsxReactEmitWhitespace2.tsx ===
|
||
|
declare module JSX {
|
||
|
>JSX : any
|
||
|
|
||
|
interface Element { }
|
||
|
>Element : Element
|
||
|
|
||
|
interface IntrinsicElements {
|
||
|
>IntrinsicElements : IntrinsicElements
|
||
|
|
||
|
[s: string]: any;
|
||
|
>s : string
|
||
|
}
|
||
|
}
|
||
|
declare var React: any;
|
||
|
>React : any
|
||
|
|
||
|
// Emit ' word' in the last string
|
||
|
<div>word <code>code</code> word</div>;
|
||
|
><div>word <code>code</code> word</div> : JSX.Element
|
||
|
>div : any
|
||
|
><code>code</code> : JSX.Element
|
||
|
>code : any
|
||
|
>code : any
|
||
|
>div : any
|
||
|
|
||
|
// Same here
|
||
|
<div><code>code</code> word</div>;
|
||
|
><div><code>code</code> word</div> : JSX.Element
|
||
|
>div : any
|
||
|
><code>code</code> : JSX.Element
|
||
|
>code : any
|
||
|
>code : any
|
||
|
>div : any
|
||
|
|
||
|
// And here
|
||
|
<div><code /> word</div>;
|
||
|
><div><code /> word</div> : JSX.Element
|
||
|
>div : any
|
||
|
><code /> : JSX.Element
|
||
|
>code : any
|
||
|
>div : any
|
||
|
|
||
|
|