Open
Description
I have a prop that is defined as propName: (() => string) | undefined
and the function portion of it is showing as "unknown"
for the tsType
Minimal input
interface Props {
name: (() => string) | undefined
}
const MyComponent = ({name}: Props) => {
return <div />;
}
Output:
[
{
"description": "",
"displayName": "MyComponent",
"methods": [],
"props": {
"name": {
"required": true,
"tsType": {
"name": "union",
"raw": "(() => string) | undefined",
"elements": [
{
"name": "unknown"
},
{
"name": "undefined"
}
]
},
"description": ""
}
}
}
]
Tested on v8.0.0
Metadata
Metadata
Assignees
Labels
No labels