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
this disclaimer
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}
Important

Use secure code every time

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


Related snippets