* No error for ... on last param of jsdoc function * ... is a rest param w/array type in jsdoc function * Simplify getTypeFromJSDocVariadicType
17 lines
306 B
TypeScript
17 lines
306 B
TypeScript
// @noEmit: true
|
|
// @allowJs: true
|
|
// @checkJs: true
|
|
// @strict: true
|
|
// @Filename: a.js
|
|
|
|
// from bcryptjs
|
|
/** @param {function(...[*])} callback */
|
|
function g(callback) {
|
|
callback([1], [2], [3])
|
|
}
|
|
|
|
/**
|
|
* @type {!function(...number):string}
|
|
* @inner
|
|
*/
|
|
var stringFromCharCode = String.fromCharCode;
|