How to use 'jsdoc function param' in JavaScript

Every line of 'jsdoc function param' code snippets is scanned for vulnerabilities by our powerful machine learning engine that combs millions of open source libraries, ensuring your JavaScript code is secure.

All examples are scanned by Snyk Code

By copying the Snyk Code Snippets you agree to
161private handleFunctionParameter(parameter: ts.ParameterDeclaration, sourceFile: ts.SourceFile) {
162 const parameterDoc = this.getParameter(parameter, sourceFile)
163 const jsDocs = this.getJsDocs(parameter, sourceFile)
164 for (const jsDoc of jsDocs) {
165 if (jsDoc.comment && jsDoc.name === 'in') {
166 parameterDoc.in = jsDoc.comment
167 } else {
168 this.setJsDoc(jsDoc, parameterDoc.type)
169 }
170 }
171 return parameterDoc
172}

Related snippets