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
|
=== tests/cases/conformance/jsx/file.tsx ===
import React = require('react');
>React : typeof React
interface Address {
street: string;
>street : string
country: string;
>country : string
}
interface CanadianAddress extends Address {
postalCode: string;
>postalCode : string
}
interface AmericanAddress extends Address {
zipCode: string;
>zipCode : string
}
type Properties = CanadianAddress | AmericanAddress;
>Properties : CanadianAddress | AmericanAddress
export class AddressComp extends React.Component<Properties, void> {
>AddressComp : AddressComp
>React.Component : React.Component<Properties, void>
>React : typeof React
>Component : typeof React.Component
public render() {
>render : () => any
return null;
>null : null
}
}
let a = <AddressComp postalCode='T1B 0L3' street="vancouver" country="CA" />
>a : JSX.Element
><AddressComp postalCode='T1B 0L3' street="vancouver" country="CA" /> : JSX.Element
>AddressComp : typeof AddressComp
>postalCode : string
>street : string
>country : string
|