Title: `'X' only refers to a type` error in JSDoc comments · Issue #59401 · microsoft/TypeScript · GitHub
Open Graph Title: `'X' only refers to a type` error in JSDoc comments · Issue #59401 · microsoft/TypeScript
X Title: `'X' only refers to a type` error in JSDoc comments · Issue #59401 · microsoft/TypeScript
Description: 🔎 Search Terms JSDoc only refers to a type @link 🕗 Version & Regression Information 5.6.0-dev.20240723 Not a regression ⏯ Playground Link No response 💻 Code When editing JSDoc comments that use @link, I occasionally see errors such as: '...
Open Graph Description: 🔎 Search Terms JSDoc only refers to a type @link 🕗 Version & Regression Information 5.6.0-dev.20240723 Not a regression ⏯ Playground Link No response 💻 Code When editing JSDoc comments that use @li...
X Description: 🔎 Search Terms JSDoc only refers to a type @link 🕗 Version & Regression Information 5.6.0-dev.20240723 Not a regression ⏯ Playground Link No response 💻 Code When editing JSDoc comments that use...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/59401
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"`'X' only refers to a type` error in JSDoc comments","articleBody":"### 🔎 Search Terms\n\n- JSDoc\n- only refers to a type\n- `@link`\n\n### 🕗 Version & Regression Information\n\n5.6.0-dev.20240723\n\nNot a regression\n\n### ⏯ Playground Link\n\n_No response_\n\n### 💻 Code\n\nWhen editing JSDoc comments that use `@link`, I occasionally see errors such as:\n\n```\n'TextDocument' only refers to a type, but is being used as a value here.ts(2693)\n```\n\nThis seems to happen most often in larger projects, such as the VS Code codebase\n\nAs soon as I make another edit, the error goes away\n\n\nAttached log shows the error showing up and then going away once an edit is made: [tsserver.log](https://github.com/user-attachments/files/16354619/tsserver.log)\n\n\n\n### 🙁 Actual behavior\n\nTransient errors are occasionally reported. Seems to happen most often when editing jsdoc comments\n\n### 🙂 Expected behavior\n\nNo error. The code is valid\n\n### Additional information about the issue\n\n_No response_","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2024-07-23T21:55:03Z","url":"https://github.com/microsoft/TypeScript/issues/59401"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:b5d75bcb-1edf-8054-95f0-abdcf5e36e98 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | DDAC:EA06E:10C3AD1:1580317:6B0101D1 |
| html-safe-nonce | 070fd31bda6af1e9ecaa3f6e3ca24904c97ad3207bc144565caa2436010cad7c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEREFDOkVBMDZFOjEwQzNBRDE6MTU4MDMxNzo2QjAxMDFEMSIsInZpc2l0b3JfaWQiOiIxMTMxNzExOTE0MjE3Mzc0MTYxIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 43fb6a4252151c8163d24e420bcc34c5276c1206c03c53c5f9eea19831a8bbb2 |
| hovercard-subject-tag | issue:2426192477 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/microsoft/TypeScript/59401/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1b7d393d7026049f8000548874aadbab1bc4fade5cb6e3b6ba2cd49726938ebb/microsoft/TypeScript/issues/59401 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1b7d393d7026049f8000548874aadbab1bc4fade5cb6e3b6ba2cd49726938ebb/microsoft/TypeScript/issues/59401 |
| og:image:alt | 🔎 Search Terms JSDoc only refers to a type @link 🕗 Version & Regression Information 5.6.0-dev.20240723 Not a regression ⏯ Playground Link No response 💻 Code When editing JSDoc comments that use @li... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | mjbvz |
| hostname | github.com |
| expected-hostname | github.com |
| None | cb7fa109eca7d4156c889f474306b0e91336055e9adf8fd4684b61e49094d124 |
| turbo-cache-control | no-preview |
| go-import | github.com/microsoft/TypeScript git https://github.com/microsoft/TypeScript.git |
| octolytics-dimension-user_id | 6154722 |
| octolytics-dimension-user_login | microsoft |
| octolytics-dimension-repository_id | 20929025 |
| octolytics-dimension-repository_nwo | microsoft/TypeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 20929025 |
| octolytics-dimension-repository_network_root_nwo | microsoft/TypeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 2b59d31a4e44f08b7af67a4b67f8fd0af3befe2a |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width