-
-
Notifications
You must be signed in to change notification settings - Fork 163
Support Google Closure Compiler-style type expressions (JSDoc 3.2) #657
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
Comments
Your ESLint config either needs to use |
@brettz9 Ah that is indeed interesting. I'm curious, why is the mode referred to as "typescript" when it is stated in the JSDoc specification? JSDoc isn't coupled to TypeScript afaiac (I am aware that TypeScript uses Google Closure Compiler-style type expressions, so it happens to work). Shouldn't the "mode" be referred to as "JSDoc-3.2"? |
Firstly, I should say |
Thank you for taking the time to explain this! I've been with TypeScript for a few years but want to move over to JavaScript + JSDoc and this helped! |
I'm not sure if this should be put in #145 since that one specifically states TypeScript. Just tell me if it is!
According to the JSDoc 3.2 specification located here https://jsdoc.app/tags-type.html Google Closure Compiler-style type expressions should be supported.
Motivation
People are using TypeScript more and more, there is more information about this type of syntax rather than the old Object.<string, number> syntax which there is less information about.
Current behavior
Causes errors:
Syntax error in type: [string, Message][]eslintjsdoc/valid-types
Desired behavior
No errors.
The text was updated successfully, but these errors were encountered: