1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
|
=== tests/cases/conformance/jsx/file.tsx ===
import React = require('react');
>React : typeof React
interface ComponentProps {
property1: string;
>property1 : string
property2: number;
>property2 : number
}
export default function Component(props: ComponentProps) {
>Component : (props: ComponentProps) => JSX.Element
>props : ComponentProps
return (
>( <AnotherComponent {...props} property2 AnotherProperty1="hi"/> ) : JSX.Element
<AnotherComponent {...props} property2 AnotherProperty1="hi"/>
><AnotherComponent {...props} property2 AnotherProperty1="hi"/> : JSX.Element
>AnotherComponent : ({ property1 }: AnotherComponentProps) => JSX.Element
>props : ComponentProps
>property2 : true
>AnotherProperty1 : string
);
}
interface AnotherComponentProps {
property1: string;
>property1 : string
AnotherProperty1: string;
>AnotherProperty1 : string
property2: boolean;
>property2 : boolean
}
function AnotherComponent({ property1 }: AnotherComponentProps) {
>AnotherComponent : ({ property1 }: AnotherComponentProps) => JSX.Element
>property1 : string
return (
>( <span>{property1}</span> ) : JSX.Element
<span>{property1}</span>
><span>{property1}</span> : JSX.Element
>span : any
>property1 : string
>span : any
);
}
|