Title: No auto-imports from exports fields apart from `.` · Issue #47009 · microsoft/TypeScript · GitHub
Open Graph Title: No auto-imports from exports fields apart from `.` · Issue #47009 · microsoft/TypeScript
X Title: No auto-imports from exports fields apart from `.` · Issue #47009 · microsoft/TypeScript
Description: //// @filename: ./node_modules/dependency/package.json //// { //// "type": "module", //// "name": "dependency", //// "version": "1.0.0" //// "exports": { //// ".": { //// "types": "./lib/index.d.ts", //// } //// "./lol": { //// "types": ...
Open Graph Description: //// @filename: ./node_modules/dependency/package.json //// { //// "type": "module", //// "name": "dependency", //// "version": "1.0.0" //// "exports": { //// ".": { //// "types": "./lib/index.d.ts...
X Description: //// @filename: ./node_modules/dependency/package.json //// { //// "type": "module", //// "name": "dependency", //// "version": "1.0.0" /...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/47009
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"No auto-imports from exports fields apart from `.`","articleBody":"```ts\r\n//// @filename: ./node_modules/dependency/package.json\r\n//// {\r\n//// \"type\": \"module\",\r\n//// \"name\": \"dependency\",\r\n//// \"version\": \"1.0.0\"\r\n//// \"exports\": {\r\n//// \".\": {\r\n//// \"types\": \"./lib/index.d.ts\",\r\n//// }\r\n//// \"./lol\": {\r\n//// \"types\": \"./lib/lol.d.ts\",\r\n//// }\r\n//// }\r\n//// }\r\n\r\n//// @filename: ./node_modules/dependency/lib/index.d.ts\r\n//// export function fooFromIndex(): void;\r\n\r\n//// @filename: ./node_modules/dependency/lib/lol.d.ts\r\n//// export function fooFromLol(): void;\r\n\r\n//// @filename: ./package.json\r\n//// {\r\n//// \"type\": \"module\",\r\n//// \"dependencies\": {\r\n//// \"dependency\": \"^1.0.0\"\r\n//// }\r\n//// }\r\n\r\n//// @filename: ./src/foo.ts\r\n//// import fooFrom/**/\r\n```\r\n\r\n**Expected**: completions for `fooFromIndex` and `fooFromLol`\r\n**Actual**: completions for `fooFromIndex` and **but not** `fooFromLol`","author":{"url":"https://github.com/DanielRosenwasser","@type":"Person","name":"DanielRosenwasser"},"datePublished":"2021-12-03T21:16:47Z","url":"https://github.com/microsoft/TypeScript/issues/47009"}
| 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:ad733279-69c0-5035-c83e-38d9c31ec1e7 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B6BA:34EA7D:C91DBA:1027209:6B00ED52 |
| html-safe-nonce | a14af9a52fd2a9b57d233ac96d2f9cae00dbf9e47e5ac89fb97fbad3e61b3b39 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNkJBOjM0RUE3RDpDOTFEQkE6MTAyNzIwOTo2QjAwRUQ1MiIsInZpc2l0b3JfaWQiOiI2ODc1MDE2MjE5MDc0ODE3MzYzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 44ccbe2a2013f9b2e705129aa3bc41f5b95d31656dc1469ceaee902ae7fb3eb7 |
| hovercard-subject-tag | issue:1070974780 |
| 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/47009/issue_layout |
| twitter:image | https://opengraph.githubassets.com/cbe6f83aa9bf2241b08eb39238c62768ef2aa84f338f609a7df9d6c03121618c/microsoft/TypeScript/issues/47009 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/cbe6f83aa9bf2241b08eb39238c62768ef2aa84f338f609a7df9d6c03121618c/microsoft/TypeScript/issues/47009 |
| og:image:alt | //// @filename: ./node_modules/dependency/package.json //// { //// "type": "module", //// "name": "dependency", //// "version": "1.0.0" //// "exports": { //// ".": { //// "types": "./lib/index.d.ts... |
| 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