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 56 57 58 59 60 61 62 63 64 65 66 67
|
=== tests/cases/compiler/reactSFCAndFunctionResolvable.tsx ===
/// <reference path="react16.d.ts" />
import * as React from 'react';
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
declare const Radio: (props: {}) => React.ReactElement<{}>;
>Radio : Symbol(Radio, Decl(reactSFCAndFunctionResolvable.tsx, 4, 13))
>props : Symbol(props, Decl(reactSFCAndFunctionResolvable.tsx, 4, 22))
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
>ReactElement : Symbol(React.ReactElement, Decl(react16.d.ts, 135, 9))
declare const OtherRadio: () => React.ReactElement<{}>;
>OtherRadio : Symbol(OtherRadio, Decl(reactSFCAndFunctionResolvable.tsx, 5, 13))
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
>ReactElement : Symbol(React.ReactElement, Decl(react16.d.ts, 135, 9))
declare const Checkbox: React.SFC;
>Checkbox : Symbol(Checkbox, Decl(reactSFCAndFunctionResolvable.tsx, 6, 13))
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
>SFC : Symbol(React.SFC, Decl(react16.d.ts, 400, 9))
declare const condition1: boolean;
>condition1 : Symbol(condition1, Decl(reactSFCAndFunctionResolvable.tsx, 8, 13))
declare const condition2: boolean;
>condition2 : Symbol(condition2, Decl(reactSFCAndFunctionResolvable.tsx, 9, 13))
declare const condition3: boolean;
>condition3 : Symbol(condition3, Decl(reactSFCAndFunctionResolvable.tsx, 10, 13))
const RandomComponent: React.SFC = () => {
>RandomComponent : Symbol(RandomComponent, Decl(reactSFCAndFunctionResolvable.tsx, 12, 5))
>React : Symbol(React, Decl(reactSFCAndFunctionResolvable.tsx, 2, 6))
>SFC : Symbol(React.SFC, Decl(react16.d.ts, 400, 9))
const Component =
>Component : Symbol(Component, Decl(reactSFCAndFunctionResolvable.tsx, 13, 7))
condition1
>condition1 : Symbol(condition1, Decl(reactSFCAndFunctionResolvable.tsx, 8, 13))
? Radio
>Radio : Symbol(Radio, Decl(reactSFCAndFunctionResolvable.tsx, 4, 13))
: Checkbox;
>Checkbox : Symbol(Checkbox, Decl(reactSFCAndFunctionResolvable.tsx, 6, 13))
const OtherComponent =
>OtherComponent : Symbol(OtherComponent, Decl(reactSFCAndFunctionResolvable.tsx, 18, 7))
condition2
>condition2 : Symbol(condition2, Decl(reactSFCAndFunctionResolvable.tsx, 9, 13))
? OtherRadio
>OtherRadio : Symbol(OtherRadio, Decl(reactSFCAndFunctionResolvable.tsx, 5, 13))
: Checkbox;
>Checkbox : Symbol(Checkbox, Decl(reactSFCAndFunctionResolvable.tsx, 6, 13))
return condition1 ? <Component /> : <OtherComponent />;
>condition1 : Symbol(condition1, Decl(reactSFCAndFunctionResolvable.tsx, 8, 13))
>Component : Symbol(Component, Decl(reactSFCAndFunctionResolvable.tsx, 13, 7))
>OtherComponent : Symbol(OtherComponent, Decl(reactSFCAndFunctionResolvable.tsx, 18, 7))
};
|