Skip to content

JSDoc output types #15563

Closed
Closed
@NN---

Description

@NN---

TypeScript Version: 2.2.1 / nightly (2.2.0-dev.201xxxxx)

Code
Is there an option to autogenerate types in JSDoc for any function ?

For instance given

function f(x:number):number { return x+1; }

/**
 * @param x Something
 */
function g(x:number):number { return x+1; }

I would get output of:

/**
 * @param x {number}
 */
function f(x:number):number { return x+1; }

/**
 * @param x {number} Something
 */
function g(x:number):number { return x+1; }

It helps debugging JS code.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions