How to use @otris/jsdoc-tsd - 1 common examples

To help you get started, we’ve selected a few @otris/jsdoc-tsd examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github signicode / scramjet / jsdoc2md / tsd-template / publish.js View on Github external
const wouldReturn = this.inherits.substring(
                    this.inherits.indexOf(".") + 1,
                    this.inherits.length - this.name.length - 1
                );
                const shouldReturn = this.memberof.substring(
                    this.memberof.indexOf(".") + 1
                );
                this.returns.forEach(
                    value => value.type && value.type.names && (value.type.names = value.type.names.map(
                        name => name === wouldReturn ? shouldReturn : name
                    ))
                );
            }
        });

        return publish(data, opts);
    }
};

@otris/jsdoc-tsd

JSDoc Template for generate typescript definition files from JSDoc comments

MIT
Latest version published 1 year ago

Package Health Score

43 / 100
Full package analysis

Popular @otris/jsdoc-tsd functions

Similar packages