2bb54dc11a
* Fix getTypeFromJSDocVariadicType in @callback Variadics have never worked there, I think. * add test + fix lint * remove outdated comment
16 lines
393 B
Plaintext
16 lines
393 B
Plaintext
=== tests/cases/conformance/jsdoc/callbackTagVariadicType.js ===
|
|
/**
|
|
* @callback Foo
|
|
* @param {...string} args
|
|
* @returns {number}
|
|
*/
|
|
|
|
/** @type {Foo} */
|
|
export const x = () => 1
|
|
>x : Symbol(x, Decl(callbackTagVariadicType.js, 7, 12))
|
|
|
|
var res = x('a', 'b')
|
|
>res : Symbol(res, Decl(callbackTagVariadicType.js, 8, 3))
|
|
>x : Symbol(x, Decl(callbackTagVariadicType.js, 7, 12))
|
|
|