Skip to content

Add parsing of parameter types from JSDoc comment #6

Description

@Patrik112358

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions