Fixing jsdoc to properly allow string or object