TypeScript/tests/cases/conformance/jsdoc/paramTagOnCallExpression.ts
Nathan Shively-Sanders 677d860b44
No error on unmatchable @param tags (#22510)
* No errr on unmatchable `@param` tags

Such as when the initializer is not a function, or when the function
mentions `arguments` in its body.

* Do not require dummy param for JS uses of arguments

1. JS functions that use `arguments` do not require a dummy parameter in
order to get a type for the synthetic `args` parameter if there is an
`@param` with a `...` type.
2.JS functions that use `arguments` and have an `@param` must have a
type that is a `...` type.

* Check for array type instead of syntactic `...`

* Address PR comments

* Update baselines
2018-03-14 10:17:54 -07:00

11 lines
257 B
TypeScript

// @noEmit: true
// @allowJs: true
// @checkJs: true
// @Filename: decls.d.ts
declare function factory(type: string): {};
// @Filename: a.js
// from util
/** @param {function} ctor - A big long explanation follows */
exports.inherits = factory('inherits')