otris / jsdoc-tsd

JSDoc template for generating TypeScript definition files based on JSDoc comments.
MIT License
29 stars 7 forks source link

Default values of function parameters not set #45

Closed wehrstedt closed 5 years ago

wehrstedt commented 6 years ago

I have the following function definition

/**
 * My function
 * @param {boolean} [myParam=true] bla
 */
function myFunction(myParam) {
}

The generated output looks like this

function myFunction(myParam?: boolean);

The expected output looks like this

function myFunction(myParam: boolean = true);
wehrstedt commented 5 years ago

This will not be implemented because declaration files are only for describeing the signature.