Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Type {[user: Object, info: string]} not allowed with mode=typescript #135

Closed
thernstig opened this issue Feb 24, 2021 · 3 comments
Closed

Comments

@thernstig
Copy link

I have am using https://github.com/gajus/eslint-plugin-jsdoc/ with settings.jsdoc.mode: "typescript".

An example where the returns statement does not work:

/**
 * A promisified version of passport.authenticate to be used in async functions.
 *
 * @param {string} strategy - The strategy for the provider to use for the authentication flow
 * @param {express.Request} req - The Express request object
 * @param {express.Response} res - The Express request object
 * @param {Function} next - The next Express middleware function
 *
 * @returns {[user: Object, info: string]} The user and info
 */

This reports Syntax error in type: [user: Object, info: string] eslintjsdoc/valid-types)

@brettz9
Copy link
Contributor

brettz9 commented Feb 24, 2021

Closing as dupe. See labeled tuple types to-do in #50 .

@brettz9 brettz9 closed this as completed Feb 24, 2021
@ExE-Boss
Copy link
Member

Duplicate of #50

@ExE-Boss ExE-Boss marked this as a duplicate of #50 Feb 24, 2021
@thernstig
Copy link
Author

Darnit, I searched in eslint-plugin-jsdoc but forgot to search here :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants