We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I have a prop that is defined as propName: (() => string) | undefined and the function portion of it is showing as "unknown" for the tsType
propName: (() => string) | undefined
"unknown"
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
The text was updated successfully, but these errors were encountered:
Looks like it's due to the missing handling of TSParenthesizedType and might be solved in this PR: #915
TSParenthesizedType
Sorry, something went wrong.
No branches or pull requests
I have a prop that is defined as
propName: (() => string) | undefined
and the function portion of it is showing as"unknown"
for thetsType
Minimal input
Output:
Tested on v8.0.0
The text was updated successfully, but these errors were encountered: