Title: Provide a back-compat mechanism for bundled .d.ts files in package.json · Issue #22605 · microsoft/TypeScript · GitHub
Open Graph Title: Provide a back-compat mechanism for bundled .d.ts files in package.json · Issue #22605 · microsoft/TypeScript
X Title: Provide a back-compat mechanism for bundled .d.ts files in package.json · Issue #22605 · microsoft/TypeScript
Description: People are always excited to use new type system features in their programs or definition files. However, if these developers are shipping a library with bundled type definitions, they can't use these features in an exposed way unless th...
Open Graph Description: People are always excited to use new type system features in their programs or definition files. However, if these developers are shipping a library with bundled type definitions, they can't use th...
X Description: People are always excited to use new type system features in their programs or definition files. However, if these developers are shipping a library with bundled type definitions, they can't us...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/22605
X: @github
Domain: github.com
IPv4 address: 140.82.114.3
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Provide a back-compat mechanism for bundled .d.ts files in package.json","articleBody":"People are always excited to use new type system features in their programs or definition files.\r\n\r\nHowever, if these developers are shipping a library with bundled type definitions, they can't use these features in an exposed way unless they are willing to force all TS consumers of the library to upgrade to a matching compiler version.\r\n\r\nThis leads to awkward trade-offs and end-user confusion when they upgrade eventually does happen.\r\n\r\nThere should be some way for library authors to say \"Use *this* .d.ts file if you're on *this* version of TypeScript\" so they can provide back-compat ranges. This could be based on semver ranges provided in `package.json`:\r\n\r\n```\r\n{\r\n ...\r\n \"types-compat\": {\r\n \"\u003c=2.3\": \"backcompat/index-2.3.d.ts\",\r\n \"\u003c=2.7\": \"backcompat/index-2.7.d.ts\",\r\n \"*\": \"index.d.ts\"\r\n }\r\n}\r\n```\r\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2018-03-15T17:03:13Z","url":"https://github.com/microsoft/TypeScript/issues/22605"}
| 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:4a22035b-06da-0671-a248-dbaedbcdf817 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 987A:347215:43BA69:5D20EF:6B0451E9 |
| html-safe-nonce | 589e6d914ce9a2a9e0e850123a947e0b5bf4649f14655415edace494957a4896 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5ODdBOjM0NzIxNTo0M0JBNjk6NUQyMEVGOjZCMDQ1MUU5IiwidmlzaXRvcl9pZCI6IjEwMzEyMzQwMDE4OTA5ODg1MjEiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 724763ae13f1441c165116e6093a01f482c43fd49b4cce16edc083f96ee6fe2d |
| hovercard-subject-tag | issue:305639723 |
| 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/22605/issue_layout |
| twitter:image | https://opengraph.githubassets.com/0c010301e5fe8bf4af2945ac5a282daa070ae5b19dd2bcc96dbd8154096bd001/microsoft/TypeScript/issues/22605 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/0c010301e5fe8bf4af2945ac5a282daa070ae5b19dd2bcc96dbd8154096bd001/microsoft/TypeScript/issues/22605 |
| og:image:alt | People are always excited to use new type system features in their programs or definition files. However, if these developers are shipping a library with bundled type definitions, they can't use th... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | RyanCavanaugh |
| hostname | github.com |
| expected-hostname | github.com |
| None | 910ca0e260cfec6aff11407d8dc6a0d3a4cd381a2ec9ada56627b063426892a0 |
| 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 | e086f9b7e88322eb2b41885a6ad425b215737fa5 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
| Server | github.com |
| Content-Type | text/html; charset=utf-8 |
| Cache-Control | max-age=0, private, must-revalidate |
Viewport: width=device-width