Title: Package typing inclusion and discovery · Issue #5537 · microsoft/TypeScript · GitHub
Open Graph Title: Package typing inclusion and discovery · Issue #5537 · microsoft/TypeScript
X Title: Package typing inclusion and discovery · Issue #5537 · microsoft/TypeScript
Description: This issue tracks our plans and discussion around the current situation with package typings. Internally, we've been talking about how to better package, locate, and discover typings for packages which do not include their own typings. T...
Open Graph Description: This issue tracks our plans and discussion around the current situation with package typings. Internally, we've been talking about how to better package, locate, and discover typings for packages w...
X Description: This issue tracks our plans and discussion around the current situation with package typings. Internally, we've been talking about how to better package, locate, and discover typings for packag...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/5537
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Package typing inclusion and discovery","articleBody":"This issue tracks our plans and discussion around the current situation with package typings.\n\nInternally, we've been talking about how to better package, locate, and discover typings for packages which do not include their own typings.\n\nThe issues which arise around packages and their typings include:\n- Reuse - the ability to take typings written for long-ago TS (ambient declarations) and continue to use them with little or no modification\n- Dependency management - typings typically depend on the same things that their host js packages do - and usually on their typings, not their js.\n- De-duplication and flattening - Deeply nested typings (with potentially duplicated dependencies at multiple levels) lead to a lot of duplicated work in the compiler, and could result in longer build times. We'd like to head this off before it becomes an issue in practice if possible.\n- Discovery - if I'm using package the node package `bluebird`, how can I find types for it without skipping a beat?\n\nWe've spoken with @blakeembrey and his plans for [`typings`](https://github.com/typings) (a tool to replace/improve upon [`tsd`](https://github.com/DefinitelyTyped/tsd)). We believe that we're both setting out to solve a lot of the same problems, and we'd love to help build much of that functionality into the compiler and language service to create a seamless development experience.\n\nWe've come up with a number of improvements to pursue on our end, including:\n- Package scopes (#4913) to help with typing reuse and isolation issues\n- Extending our node module resolution for typings to have a concept of a fallback-typings package - a package which provides typings for a correspondingly named package. (For example, `typed-debug` can be installed and provides types for the `debug` module.)\n- Reducing the volume of type checking done for packages (ie, don't typecheck them)\n\nWe want to make it _seamless_ for users to use typescript with their existing tools and processes, and this includes their dealings with typings. Ideally, we want users to be able to `npm install` their dependencies as they already do and have everything \"just work\" without further steps or instructions.\n\nTagging @mhegazy @ahejlsberg @vladima @DanielRosenwasser and probably many others who should get tagged for discussion.\n\nI'm sure I've forgetting things from our discussion earlier, so feel free to chime in with the relevant conversion points I've missed.\n","author":{"url":"https://github.com/weswigham","@type":"Person","name":"weswigham"},"datePublished":"2015-11-05T02:58:12Z","url":"https://github.com/microsoft/TypeScript/issues/5537"}
| 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:7c4d3585-bfef-7a0e-e493-7d89c67b0ec1 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D03A:87955:17D0B7:1F60CC:6B016295 |
| html-safe-nonce | e986961942dbc10a0d8fa6123f4c1ea4b84016b9de2568e42ac9017aa98628b5 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMDNBOjg3OTU1OjE3RDBCNzoxRjYwQ0M6NkIwMTYyOTUiLCJ2aXNpdG9yX2lkIjoiNzU5Njc2MzU3MzEyOTQwNTA3NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 458032f9c463f3546f96d823039e30bec6f8074067cd1d049a5fa009ebbf9072 |
| hovercard-subject-tag | issue:115199017 |
| 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/5537/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ae6448ec667a017de182541ac0c16fd71400fce0c5f3a624a6928794b4a56b7b/microsoft/TypeScript/issues/5537 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ae6448ec667a017de182541ac0c16fd71400fce0c5f3a624a6928794b4a56b7b/microsoft/TypeScript/issues/5537 |
| og:image:alt | This issue tracks our plans and discussion around the current situation with package typings. Internally, we've been talking about how to better package, locate, and discover typings for packages w... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | weswigham |
| 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-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width