passport icon indicating copy to clipboard operation
passport copied to clipboard

`Authenticator.prototype.use` has incorrect JSDoc

Open thernstig opened this issue 2 years ago • 0 comments

https://github.com/jaredhanson/passport/blob/e1e4e1f0c225eea32b196c5be7f7a95c4af38bf1/lib/authenticator.js#L45-L59

Authenticator.prototype.use should have @param {Strategy|undefined} strategy as its type (or ``@param {Strategy|undefined|null} strategy`, as otherwise editors supporting type inference from JSDoc cannot parse function call properly when not using the second argument.

thernstig avatar May 09 '22 09:05 thernstig