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

JSDoc output types #15563

Closed
NN--- opened this issue May 3, 2017 · 2 comments
Closed

JSDoc output types #15563

NN--- opened this issue May 3, 2017 · 2 comments

Comments

@NN---
Copy link

NN--- commented May 3, 2017

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.

@j-oliveras
Copy link
Contributor

Duplicated of #10?

@NN---
Copy link
Author

NN--- commented May 3, 2017

Seems so.
Couldn't find it.
Thanks.

@NN--- NN--- closed this as completed May 3, 2017
@microsoft microsoft locked and limited conversation to collaborators Jun 14, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants