Title: AllowUnresolveNames not working for completion getters/setters and property signature and declaration · Issue #59554 · microsoft/TypeScript · GitHub
Open Graph Title: AllowUnresolveNames not working for completion getters/setters and property signature and declaration · Issue #59554 · microsoft/TypeScript
X Title: AllowUnresolveNames not working for completion getters/setters and property signature and declaration · Issue #59554 · microsoft/TypeScript
Description: 🔎 Search Terms AllowUnresolveNames, "preserve type nodes" 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about AllowUnresolvedNames and preserve types ⏯ Playground Lin...
Open Graph Description: 🔎 Search Terms AllowUnresolveNames, "preserve type nodes" 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about AllowUnresolvedN...
X Description: 🔎 Search Terms AllowUnresolveNames, "preserve type nodes" 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about Al...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/59554
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"AllowUnresolveNames not working for completion getters/setters and property signature and declaration","articleBody":"### 🔎 Search Terms\r\n\r\nAllowUnresolveNames, \"preserve type nodes\"\r\n\r\n### 🕗 Version & Regression Information\r\n\r\n- This is the behavior in every version I tried, and I reviewed the FAQ for entries about AllowUnresolvedNames and preserve types\r\n\r\n### ⏯ Playground Link\r\n\r\nhttps://www.typescriptlang.org/play/?target=99#code/JYOwLgpgTgZghgYwgAgILIN4Chm+TAewIC5lgBbABwKjAAoAiAOgHoATAiAZ3AgA9gXMEwBWXBgEomAMSIBuHHgDmEMMgBGcKHQmkK1Wo1YduvAUNHipsggoC+WRwgA2cLl2QAhMlWcRyEOAe6NgsLMgAKlDASipQyAgEvqrABCCkDPp+AeBkvLCIKKgMyGyClK4AnshgABaCCUkVKWnEWGFoCGAArnDObR2EJMhwIJUKHSpqmtq6I2OY7eF4NbVQBADuyCAQWwCiUOvaDACyqrUEbNsEaln+gZBsTJIT4XbIjh17fJQQXRBsAbhIZ6Kg0ejMdicHiQczCMSSGTyJbIKYaLQ6UEGCHGaFmQTwqxIgiLDorOrrLY7faHGiMM51S7XW7JHKPZ4SV7Id5YOxAA\r\n\r\n### 💻 Code\r\n\r\n```ts\r\ninterface A {\r\n foo: import(\"./doesntexist.js\").Foo;\r\n get bar(): import(\"./doesntexist.js\").Foo;\r\n}\r\n\r\n\r\nclass B implements A {\r\n// Trigger completion: \"implement interface A\" display this completion:\r\n// Actual:\r\n// foo: any;\r\n// get bar(): any {\r\n// throw new Error(\"Method not implemented.\");\r\n// } \r\n\r\n// Expected:\r\n// foo: import(\"./doesntexist.js\").Foo;\r\n// get bar(): import(\"./doesntexist.js\").Foo {\r\n// throw new Error(\"Method not implemented.\");\r\n// } \r\n}\r\n```\r\n\r\n\r\n### 🙁 Actual behavior\r\n\r\nTriggering completion uses `any` instead of the unresolved type.\r\n\r\n### 🙂 Expected behavior\r\n\r\nCompletion should be the unresolved type instead of `any`\r\n\r\n### Additional information about the issue\r\n\r\nFound in PR https://github.com/microsoft/TypeScript/pull/59440","author":{"url":"https://github.com/armanio123","@type":"Person","name":"armanio123"},"datePublished":"2024-08-08T01:28:52Z","url":"https://github.com/microsoft/TypeScript/issues/59554"}
| 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:3d215d3a-2ca7-f745-0950-e7a14e90030f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B414:34CAB:2FB1922:3D043B4:6B01D22A |
| html-safe-nonce | 1ae68415b6e84dd7550f73e72061a310d115e16b484f266483cd1244683f0292 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNDE0OjM0Q0FCOjJGQjE5MjI6M0QwNDNCNDo2QjAxRDIyQSIsInZpc2l0b3JfaWQiOiI1OTU5NDcxNzk3MzY2ODA1MDM1IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | a7a801df284d2e88b9b95f4f91eda730e18cd60bb1e0e31169e3950d31894054 |
| hovercard-subject-tag | issue:2454663554 |
| 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/59554/issue_layout |
| twitter:image | https://opengraph.githubassets.com/e9ae8de717c136e994bb845f428e1aae82989881e52a914398e3b585957ce6a9/microsoft/TypeScript/issues/59554 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/e9ae8de717c136e994bb845f428e1aae82989881e52a914398e3b585957ce6a9/microsoft/TypeScript/issues/59554 |
| og:image:alt | 🔎 Search Terms AllowUnresolveNames, "preserve type nodes" 🕗 Version & Regression Information This is the behavior in every version I tried, and I reviewed the FAQ for entries about AllowUnresolvedN... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | armanio123 |
| 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 | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width