You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
This custom command in login.commands.js file:
generates this definition in customCommands.d.ts file:
So the original JSDoc comment is simply repeated above the respective command definition in .d.ts file. However the parameter types for that command are parsed to be any.
IntelliSense then uses the generated any types for parameters
Describe the solution you'd like
Using the parameter types specified in the original JSDoc comment for the custom command type definition would be, I think, much more helpful. This means we could simply auto-generate the customCommands.d.ts file after adding/editing any custom commands and wouldn't have to correct the types again and again.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
![image](https://user-images.githubusercontent.com/28092484/160676539-e89fe179-9e6c-47e1-b059-45c9d8fccc09.png)
![image](https://user-images.githubusercontent.com/28092484/160676613-aeed8a47-4bab-4d5c-8a2f-8f6fc0ee6bb0.png)
This custom command in
login.commands.js
file:generates this definition in
customCommands.d.ts
file:So the original JSDoc comment is simply repeated above the respective command definition in .d.ts file. However the parameter types for that command are parsed to be any.
IntelliSense then uses the generated any types for parameters
![image](https://user-images.githubusercontent.com/28092484/160679328-4e6aefa7-6780-4014-bdc1-f761a264a73a.png)
Describe the solution you'd like
Using the parameter types specified in the original JSDoc comment for the custom command type definition would be, I think, much more helpful. This means we could simply auto-generate the customCommands.d.ts file after adding/editing any custom commands and wouldn't have to correct the types again and again.
The text was updated successfully, but these errors were encountered: