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