You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Search Terms:
JSDoc @type@param@arg multi-line type literal Array<>
Code
/** * @param {Array<Object>} os - has a string and a number * @param {string} os[].s - the string * @param {number} os[].n - the number */functionf(os){returnos[0].s;}
Expected behavior:
It appears that #17352 implemented this correctly for when the first @param is @param {Object[]} but failed to consider the other syntax to write this in JSDoc: @param {Array<Object>}.
For ease of debugging I am looking at the output of Intellisense when hovering over os in the function. I'd expect the output to look as iti does when @param {Object[]} is used:
TypeScript Version: 3.5.0-dev.20190416
Search Terms:
JSDoc @type @param @arg multi-line type literal Array<>
Code
Expected behavior:
It appears that #17352 implemented this correctly for when the first
@param
is@param {Object[]}
but failed to consider the other syntax to write this in JSDoc:@param {Array<Object>}
.For ease of debugging I am looking at the output of Intellisense when hovering over
os
in the function. I'd expect the output to look as iti does when@param {Object[]}
is used:Actual behavior:
Playground Link:
Playground Link
Related Issues:
#11597
The text was updated successfully, but these errors were encountered: