-
Notifications
You must be signed in to change notification settings - Fork 13.1k
Closed
Closed
Copy link
Labels
Milestone
Description
🔎 Search Terms
"jsdoc link keyword delete", "Identifier expected. 'delete' is a reserved word that cannot be used here. ts(1359)"
🕗 Version & Regression Information
- This changed between versions 5.3.3 and 5.4.2
The bug was not present in TS v5.3.3; upgrading to v5.4.2 exhibits the problem.
⏯ Playground Link
💻 Code
// @ts-check
/** {@link Map.delete} */🙁 Actual behavior
A TypeScript error on the delete in the JSDoc @link:
Identifier expected. 'delete' is a reserved word that cannot be used here. ts(1359)
🙂 Expected behavior
No TypeScript error, and the delete in the JSDoc @link should have hover information.
Additional information about the issue
Mentioned this bug here:
graphql-react users who upgrade TypeScript in their projects to v5.4.2 suddenly start seeing TypeScript errors wherever imported graphql-react modules have a JSDoc @link referencing a property delete, e.g: