/** * @param {Function} fn * @param {string|null|undefined} str */ foo.bar = function(fn, str) { // do something }