documentation/test/fixture/infer-params.input.js
Tom MacWright 7ff858420e Infer parameters
This uses the AST to add (untyped) params where they aren't explicitly
specified.

Would love to infer types here as well, but espree doesn't support
them yet.

cc @anandthakker / @jfirebaugh for the review
2015-10-04 12:51:41 -04:00

10 lines
167 B
JavaScript

/* eslint valid-jsdoc: 0 */
/**
* This function returns the number one.
* @param {number} b the second param
*/
function addThem(a, b, c) {
return a + b + c;
};