I see some people write JSDoc for JavaScript generics like this (with a dot):
/** @param {Array.<Bar>} bars the bars that should be fooed*/
function foo(bars) {}
and others like this (without the dot):
/** @param {Array<Bar>} bars the bars that should be fooed*/
function foo(bars) {}
Whats the point of the dot? Which version is correct? When should I use one and when shouldn't I?
from When should there be a dot in JSDoc generics?
No comments:
Post a Comment