Closed
Description
Hi,
I guess this is similar to #367, #369 for TS.
Using an indexed access type for a component prop result in unknow
. Whereas it should result in Type['index']
.
Either using types or interfaces.
// @flow
type Foo = {
name: string
}
type Props = {
name: Foo['name']
}
// @component
function Component(props: Props) {}
[
{
"description": "",
"displayName": "Component",
"methods": [],
"props": {
"name": {
"required": true,
"flowType": {
"name": "unknown"
},
"description": ""
}
}
}
]