677d860b44
* 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
10 lines
257 B
TypeScript
10 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')
|