Title: Show union of supported types when completing overload · Issue #19474 · microsoft/TypeScript · GitHub
Open Graph Title: Show union of supported types when completing overload · Issue #19474 · microsoft/TypeScript
X Title: Show union of supported types when completing overload · Issue #19474 · microsoft/TypeScript
Description: TypeScript Version: 2.7.0-dev.20171025 Code interface Abc { abc: number } interface Xyz { xyz: number } declare function foo(x: Abc); declare function foo(x: Xyz); foo({ | }) Trigger completions at | Expected behavior: Suggestions for bo...
Open Graph Description: TypeScript Version: 2.7.0-dev.20171025 Code interface Abc { abc: number } interface Xyz { xyz: number } declare function foo(x: Abc); declare function foo(x: Xyz); foo({ | }) Trigger completions at...
X Description: TypeScript Version: 2.7.0-dev.20171025 Code interface Abc { abc: number } interface Xyz { xyz: number } declare function foo(x: Abc); declare function foo(x: Xyz); foo({ | }) Trigger completions at...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/19474
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Show union of supported types when completing overload","articleBody":"\u003c!-- BUGS: Please use this template. -->\r\n\u003c!-- QUESTIONS: This is not a general support forum! Ask Qs at http://stackoverflow.com/questions/tagged/typescript -->\r\n\u003c!-- SUGGESTIONS: See https://github.com/Microsoft/TypeScript-wiki/blob/master/Writing-Good-Design-Proposals.md -->\r\n\r\n\u003c!-- Please try to reproduce the issue with `typescript@next`. It may have already been fixed. -->\r\n**TypeScript Version:** 2.7.0-dev.20171025\r\n\r\n**Code**\r\n\r\n```ts\r\ninterface Abc {\r\n abc: number\r\n}\r\n\r\ninterface Xyz {\r\n xyz: number\r\n}\r\n\r\ndeclare function foo(x: Abc);\r\ndeclare function foo(x: Xyz); \r\n\r\nfoo({\r\n |\r\n})\r\n```\r\n\r\nTrigger completions at `|`\r\n\r\n**Expected behavior:**\r\nSuggestions for both `abc` and `xyz` are returned since either version of overload could apply \r\n\r\n\r\n**Actual behavior:**\r\nOnly a completion for `abc` is returned.\r\n\r\n// cc @octref\r\n","author":{"url":"https://github.com/mjbvz","@type":"Person","name":"mjbvz"},"datePublished":"2017-10-25T18:42:28Z","url":"https://github.com/microsoft/TypeScript/issues/19474"}
| 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:b0efe3b9-b77c-e3f4-1fd5-478d0167e49d |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 953A:26ECEB:26FCE2E:318F3D3:6B0181A9 |
| html-safe-nonce | dc01cb22e21d529833798fdbc926d493c38a37f72dd92c27c954cf02f2bc9240 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5NTNBOjI2RUNFQjoyNkZDRTJFOjMxOEYzRDM6NkIwMTgxQTkiLCJ2aXNpdG9yX2lkIjoiNzc4MjA0NTkxOTY1ODIxMzgwMSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 8ce97314bba196d8f05e98192da4b29dcc9cd9d3900eb2757da2021cb92ceb40 |
| hovercard-subject-tag | issue:268505817 |
| 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/19474/issue_layout |
| twitter:image | https://opengraph.githubassets.com/f5d07ff72a831c01c76f939eb75e48f93e74dbdc8f23e7152a1e617d8fe47805/microsoft/TypeScript/issues/19474 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/f5d07ff72a831c01c76f939eb75e48f93e74dbdc8f23e7152a1e617d8fe47805/microsoft/TypeScript/issues/19474 |
| og:image:alt | TypeScript Version: 2.7.0-dev.20171025 Code interface Abc { abc: number } interface Xyz { xyz: number } declare function foo(x: Abc); declare function foo(x: Xyz); foo({ | }) Trigger completions at... |
| 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 | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | canary-1 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width