otris / jsdoc-tsd

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

Support for @this #54

Closed wehrstedt closed 5 years ago

wehrstedt commented 6 years ago

You can set the this-reference via "@this" for functions. We need a way to support this, e.g. with functions

/**
 * @class myClass
 */

/**
 * @function myFunc
 * @this myClass
 */

Will result in

function myFunc(this: myClass): void;