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
dumi-afx-deps
2.2.14
macOS13.5
18.0.0
Chrome/118.0.0.0
https://github.com/jeffwcx/dumi
dumi-afx-deps解析问题 编写类型
(e?: MouseEvent) => void
会被解析为
{ "type": "function", "signature": { "isAsync": false, "returnType": { "type": "void" }, "arguments": [ { "key": "e", "type": "MouseEvent | undefined", "hasQuestionToken": true } ] }, "className": "__type" },
应该解析为
{ "type": "function", "signature": { "isAsync": false, "returnType": { "type": "void" }, "arguments": [ { "key": "e", "type": "MouseEvent", "hasQuestionToken": true } ] }, "className": "__type" },
(e: MouseEvent | undefined) => void
应该被解析为
"arguments": [ { "key": "e", "type": "MouseEvent | undefined", "hasQuestionToken": false } ]
而
则应该被解析为
"arguments": [ { "key": "e", "type": "MouseEvent", "hasQuestionToken": true } ]
两者在类型上还是由区别的,不应该混淆
None
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Version
2.2.14
OS Version
macOS13.5
Node.js Version
18.0.0
Browser Version
Chrome/118.0.0.0
Link to minimal reproduction
https://github.com/jeffwcx/dumi
Steps to reproduce
dumi-afx-deps
解析问题编写类型
会被解析为
What is expected?
应该解析为
What is actually happening?
应该被解析为
而
则应该被解析为
两者在类型上还是由区别的,不应该混淆
Any additional comments? (optional)
None
The text was updated successfully, but these errors were encountered: