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

No color on default template argument #994

Open
barsdeveloper opened this issue Oct 13, 2023 · 1 comment
Open

No color on default template argument #994

barsdeveloper opened this issue Oct 13, 2023 · 1 comment

Comments

@barsdeveloper
Copy link

The default argument for template is not highlighted correctly even though it is correct syntax and it's recognized by the typescript language server

/**
 * @template Value
 * @template [Output=Value]
 **///       ^ from here on
class A {}

/** @typedef {A<Number>} Custom */
@barsdeveloper
Copy link
Author

Please remember that default can also be a value, not just a type
https://www.typescriptlang.org/docs/handbook/jsdoc-supported-types.html#param-and-returns

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

No branches or pull requests

1 participant