Skip to content
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

Add parsing of parameter types from JSDoc comment #6

Open
Patrik112358 opened this issue Mar 29, 2022 · 0 comments
Open

Add parsing of parameter types from JSDoc comment #6

Patrik112358 opened this issue Mar 29, 2022 · 0 comments
Labels
enhancement New feature or request

Comments

@Patrik112358
Copy link

Is your feature request related to a problem? Please describe.
This custom command in login.commands.js file:
image
generates this definition in customCommands.d.ts file:
image

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

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.

@Patrik112358 Patrik112358 added the enhancement New feature or request label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant