-
Notifications
You must be signed in to change notification settings - Fork 697
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
warning Encountered an unescaped open brace without an inline tag & warning Unmatched closing brace #1979
Comments
This is probably going to be a wontfix. JSDoc's idea of putting default values in the comment was acceptable at the time, but today there are real default values. Just use an initializer instead and remove the redundant initializer from your comment. Implementing support for this would be horrible, since it essentially means typedoc would have to handle the entire JS grammar. |
@Gerrit0 I understand but I'm not sure what exactly |
The type annotation in your param comment is redundant - you already declared the type in the signature. The same goes for the default value. TSDoc actually forbids both, but due to the very common use of type annotations, TypeDoc will just silently ignore it. http://typedoc.org/tags/param/#tsdoc-compatibility |
Thank you for your feedback. I did not know that TypeDoc does not need the type annotations in the comments. Unfortunately this causes a lot of problems and it seems as if only sone comments (like |
After having changed the first 100 comments it seems as if "only" the default value of |
I'd recommend running a workspace search/replace in VSCode, if you search for There are many more default values which could cause issues. A few: /**
* @param [x="{"]
* @param [y=`${x}`]
* @param [z="@bad"]
*/ |
Search terms
warning Encountered an unescaped open brace without an inline tag
warning Unmatched closing brace
Expected Behavior
No warning
Actual Behavior
./src/components/contacts/index.ts:95:40 - warning Encountered an unescaped open brace without an inline tag
95 * @param {contactData.dataType} [data={}] - The given contact values
./src/components/contacts/index.ts:95:41 - warning Unmatched closing brace
95 * @param {contactData.dataType} [data={}] - The given contact values
Steps to reproduce the bug
Environment
The text was updated successfully, but these errors were encountered: