Title: Related error spans for too few arguments · Issue #25255 · microsoft/TypeScript · GitHub
Open Graph Title: Related error spans for too few arguments · Issue #25255 · microsoft/TypeScript
X Title: Related error spans for too few arguments · Issue #25255 · microsoft/TypeScript
Description: Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message. When calling a function with too few arguments, we should see if we can provide a related span on the first m...
Open Graph Description: Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message. When calling a function with too few arguments, we should see if we c...
X Description: Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message. When calling a function with too few arguments, we should see if ...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/25255
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Related error spans for too few arguments","articleBody":"Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message.\r\n\r\nWhen calling a function with too few arguments, we should see if we can provide a related span on the first missing parameter in the resolved call.\r\n\r\nFor example\r\n\r\n```ts\r\n foo(0, 0)\r\n// ~~~~~~~~~\r\n// Expected 3 arguments, but got 2.\r\n\r\n function foo(a, b, c) {}\r\n// ~\r\n// An argument for 'c' was not provided.\r\n\r\n///////////////////////////////\r\n\r\n bar(0, 0)\r\n// ~~~~~~~~~\r\n// Expected 3 arguments, but got 2.\r\n\r\n function bar(a, b, { hello }) {}\r\n// ~~~~~~~~~\r\n// The respective argument was not provided.\r\n```","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2018-06-26T23:26:27Z","url":"https://github.com/microsoft/TypeScript/issues/25255"}
| 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:c8ed7251-1183-1067-b007-57a9a124f0fc |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D634:65478:BD93D8:FD8885:6B00F534 |
| html-safe-nonce | 06d56c2fe4f6fed9b4a20cc632cccfb4058a5c8a70d4f832738e45cd40c060d5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJENjM0OjY1NDc4OkJEOTNEODpGRDg4ODU6NkIwMEY1MzQiLCJ2aXNpdG9yX2lkIjoiMTM4MjI5NTgxNTM5MjkxNjc4OCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 624468e9b5faf3684e720f8987d48b11ae08b133285c58122dafc354306ae4b6 |
| hovercard-subject-tag | issue:336025868 |
| 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/25255/issue_layout |
| twitter:image | https://opengraph.githubassets.com/231db7b3fbf8f8fb964470303a6b57736340430f4bd313565e5b7b80c617ee8a/microsoft/TypeScript/issues/25255 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/231db7b3fbf8f8fb964470303a6b57736340430f4bd313565e5b7b80c617ee8a/microsoft/TypeScript/issues/25255 |
| og:image:alt | Now that we support multiple related spans for errors (#10489, #22789, #24548), we'd like to improve an existing error message. When calling a function with too few arguments, we should see if we c... |
| 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 | 4ef498cbabcbe3c50befc7a5b743e7072ee770b4daf0e15e54801180d1fa91fc |
| 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 | 9983dd5da06943f833c971dd5b6bc988e2858be5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width