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
3.8.2
all
d.ts中 cc.Node 和 cc.Component 类的 getComponent()方法参数类型声明好像不一致. 导致 对象类型是 cc.Node | cc.Component 时, getComponent()只支持字符串
cc.Node | cc.Component
No response
(无)
The text was updated successfully, but these errors were encountered:
错误如上图
Sorry, something went wrong.
fixed cocos#16915: an eslint error if invoking getComponent for a uni…
d40b205
…on type `Node | Component`.
Node | Component
It was fixed at #16921, it will be in v3.8.4. Thanks for your report.
fixed #16915: an eslint error if invoking getComponent for a union ty…
2877f3d
…pe `Node | Component`. (#16921)
dumganhar
No branches or pull requests
Cocos Creator version
3.8.2
System information
all
Issue description
d.ts中 cc.Node 和 cc.Component 类的 getComponent()方法参数类型声明好像不一致.
导致 对象类型是
cc.Node | cc.Component
时, getComponent()只支持字符串Relevant error log output
No response
Steps to reproduce
(无)
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: