-
Notifications
You must be signed in to change notification settings - Fork 12.8k
Support Object.<type1, type2> JSDoc notation for index signatures #15105
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
Comments
I think |
Fix is up at #17254 |
Should the fix work with I ask because it does not seems to work with the former. |
The code currently only checks for Feel free to open an issue and we can decide what the correct behaviour should be. |
I understand that when is being used as a JSDoc annotation, |
Yep, the current behaviour may be wrong because it is largely inherited from Typescript. A new issue to discuss it would be helpful so we can examine all the issues. |
Done. 👍 Thanks you. |
From: microsoft/vscode#24291
TypeScript Version: 2.2.2
Code
Expected behavior:
obj
has a type ofObject<string, number>
(at at least some equivalent type with an index signature). This syntax is valid according to http://usejsdoc.org/tags-type.htmlActual behavior:
obj
has anany
typeThe text was updated successfully, but these errors were encountered: