Title: Incorrect types from JSDoc `/** @type */` tag with rest parameters · Issue #39229 · microsoft/TypeScript · GitHub
Open Graph Title: Incorrect types from JSDoc `/** @type */` tag with rest parameters · Issue #39229 · microsoft/TypeScript
X Title: Incorrect types from JSDoc `/** @type */` tag with rest parameters · Issue #39229 · microsoft/TypeScript
Description: // @ts-check /** * @type {(...args: [string, string] | [number, string, string]) => void} */ function foo(...args) { } args somehow has the type string | number. https://www.typescriptlang.org/v2/play?ts=4.0.0-dev.20200623&ssl=1&ssc=1&pl...
Open Graph Description: // @ts-check /** * @type {(...args: [string, string] | [number, string, string]) => void} */ function foo(...args) { } args somehow has the type string | number. https://www.typescriptlang.org/v2/p...
X Description: // @ts-check /** * @type {(...args: [string, string] | [number, string, string]) => void} */ function foo(...args) { } args somehow has the type string | number. https://www.typescriptlang.org/v...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/39229
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Incorrect types from JSDoc `/** @type */` tag with rest parameters","articleBody":"```js\r\n// @ts-check\r\n\r\n/**\r\n * @type {(...args: [string, string] | [number, string, string]) => void}\r\n */\r\nfunction foo(...args) {\r\n \r\n}\r\n```\r\n\r\n`args` somehow has the type `string | number`.\r\n\r\nhttps://www.typescriptlang.org/v2/play?ts=4.0.0-dev.20200623&ssl=1&ssc=1&pln=7&pc=2&useJavaScript=true#code/PQKhFgCgAIWgBALgTwA4FNoG8AUA6AgQwCcBzAZwC5oBtcxYgSwDtSAaaep1gXWgB9azAK4BbAEbpiHLi3acGcngEpoAXgB80AG4B7RgBMAvlFjAoAM2HMAxoka7m0C7t34iZclFVZT0f1BGQA","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2020-06-24T11:00:56Z","url":"https://github.com/microsoft/TypeScript/issues/39229"}
| 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:e2e17881-f80e-fede-166a-927de7fd12d6 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | A888:24ACB9:F16A10:13E815F:6B01003F |
| html-safe-nonce | db9660a82378524a5726d7675507eef2dbc91437b7e4f6a4bcb26cf4dcbdfc73 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBODg4OjI0QUNCOTpGMTZBMTA6MTNFODE1Rjo2QjAxMDAzRiIsInZpc2l0b3JfaWQiOiI2NzkwNjYzOTY3NjE5NDgxNjYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 3d488ec356a688aabcf557cf50bfb3d49715e049d98c8df93e2b3f16b360fd12 |
| hovercard-subject-tag | issue:644523322 |
| 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/39229/issue_layout |
| twitter:image | https://opengraph.githubassets.com/a962ae3753b11dff05efd6f9dc35360d26a99619ec9d8325fc1837cb502c686b/microsoft/TypeScript/issues/39229 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/a962ae3753b11dff05efd6f9dc35360d26a99619ec9d8325fc1837cb502c686b/microsoft/TypeScript/issues/39229 |
| og:image:alt | // @ts-check /** * @type {(...args: [string, string] | [number, string, string]) => void} */ function foo(...args) { } args somehow has the type string | number. https://www.typescriptlang.org/v2/p... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | DanielRosenwasser |
| 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