-
Notifications
You must be signed in to change notification settings - Fork 3.5k
New issue
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
Event类的 raiseEvent 方法的类型声明错误 #10498
Comments
@thw0rted Is it possible this a result of changes in https://github.com/CesiumGS/cesium/pull/10292/files#diff-a9a8f45d6459765c5f8afd93ee5a0674bab202cb0d5111d23b18adb13de351d3R123? |
Well this is a pickle. In JSDoc, the rest-type operator In Typescript, I'm going to take this up with tsd-jsdoc, and probably Typescript as well, and report back. In the meantime I'm really not sure how to proceed. We may have to revert L122/L123 to |
The issue I made on tsd-jsdoc automatically linked here. I also made microsoft/TypeScript#49801. Hopefully between them, we can figure something out. |
原来的类型声明是
这会导致必须要参数必须要放到数组里,如下:
这是原码中的逻辑不一样,而且因为要多加个中括号,这也使得使用体验也不好
正确的类型声明应该如下:
The text was updated successfully, but these errors were encountered: