Title: Request for alternative import syntax to improve auto-complete experience · Issue #2371 · microsoft/TypeScript · GitHub
Open Graph Title: Request for alternative import syntax to improve auto-complete experience · Issue #2371 · microsoft/TypeScript
X Title: Request for alternative import syntax to improve auto-complete experience · Issue #2371 · microsoft/TypeScript
Description: Consider the following import statement: import { int, float } from '../lang'; With auto-suggest I need to start this by typing: import {} from '../lang'; Then I can go back inside the {} and get auto-suggestions. It would be very nice i...
Open Graph Description: Consider the following import statement: import { int, float } from '../lang'; With auto-suggest I need to start this by typing: import {} from '../lang'; Then I can go back inside the {} and get a...
X Description: Consider the following import statement: import { int, float } from '../lang'; With auto-suggest I need to start this by typing: import {} from '../lang'; Then I can go back inside ...
Mail addresses
notifications@github.com
greg.dorval@gmail.com
greg.dorval@gmail.com
notifications@github.com
Opengraph URL: https://github.com/microsoft/TypeScript/issues/2371
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Request for alternative import syntax to improve auto-complete experience","articleBody":"Consider the following import statement:\n\n```\nimport { int, float } from '../lang';\n```\n\nWith auto-suggest I need to start this by typing:\n\n```\nimport {} from '../lang';\n```\n\nThen I can go back inside the {} and get auto-suggestions.\n\nIt would be very nice if TypeScript supported an alternate syntax for the same expression that was more conducive to auto-complete features.\nFor example:\n\n```\nimport from '../lang' { int, float };\n```\n\nThis doesn't introduce any confusion or ambiguity about the meaning of the expression, either to the transpiler or the human reader, yet it provides a time-saving experience to the author when taking advantage of auto-complete features. I can now simply type the expression naturally from left to right, and get auto-suggestions/completions for both the **from '...'** and **{}**.\n\nThere are other cases where an alternate syntax would be beneficial. I will update this issue as I compile a list. Hopefully others will comment with suggestions as well.\n","author":{"url":"https://github.com/gregdorval","@type":"Person","name":"gregdorval"},"datePublished":"2015-03-16T13:16:04Z","url":"https://github.com/microsoft/TypeScript/issues/2371"}
| 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:2b9ed4f0-556c-8acd-3998-c03356b2efb9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | C3FE:237673:DC8EAD:127A653:6B010551 |
| html-safe-nonce | f8dc3347bd9260e37e7ad43e4f99a504df642dcb02b37c643418f90b74072431 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDM0ZFOjIzNzY3MzpEQzhFQUQ6MTI3QTY1Mzo2QjAxMDU1MSIsInZpc2l0b3JfaWQiOiI4NTY5NjYxOTE4NjYxMzc5NDA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 62c4a5fc8fdba87886a1cccfcb7eca0b1e5fb2e1f345a9eae68a740c26b29de9 |
| hovercard-subject-tag | issue:62078977 |
| 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/2371/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b6560f446a1c030af427024121ebcbd490ca2e79aa95c7f99c66d08a390c086e/microsoft/TypeScript/issues/2371 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b6560f446a1c030af427024121ebcbd490ca2e79aa95c7f99c66d08a390c086e/microsoft/TypeScript/issues/2371 |
| og:image:alt | Consider the following import statement: import { int, float } from '../lang'; With auto-suggest I need to start this by typing: import {} from '../lang'; Then I can go back inside the {} and get a... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | gregdorval |
| 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