Title: Normalize our lib files by compiler settings · Issue #4168 · microsoft/TypeScript · GitHub
Open Graph Title: Normalize our lib files by compiler settings · Issue #4168 · microsoft/TypeScript
X Title: Normalize our lib files by compiler settings · Issue #4168 · microsoft/TypeScript
Description: Right now the compiler depends on a monolithic lib.d.ts file that is resolved according to the script target (ES5 or ES6). We have to build several different lib.d.ts files out of smaller parts. We should refactor this so that the differ...
Open Graph Description: Right now the compiler depends on a monolithic lib.d.ts file that is resolved according to the script target (ES5 or ES6). We have to build several different lib.d.ts files out of smaller parts. We...
X Description: Right now the compiler depends on a monolithic lib.d.ts file that is resolved according to the script target (ES5 or ES6). We have to build several different lib.d.ts files out of smaller parts. We...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/4168
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Normalize our lib files by compiler settings","articleBody":"Right now the compiler depends on a monolithic `lib.d.ts` file that is resolved according to the script target (ES5 or ES6). We have to build several different lib.d.ts files out of smaller parts.\n\nWe should refactor this so that the different aspects of the compiler settings can map to smaller sub-parts of the libraries.\n\nLanguage target:\n- ES3\n- ES5\n- ES6\n- Latest\n\nHost:\n- Browser with DOM\n- WebWorker\n- NodeJS\n- Windows Script Host :mask: \n\nModule system:\n- CommonJS\n- AMD\n- None\n\nThe idea is that we a function that takes a CompilerSettings and produces a list of filenames. These files might reference each other, e.g. `lib.es5.d.ts` would probably reference `lib.es6.d.ts` and just provide interface augmentations.\n\nThis provides several benefits:\n- It will be easier for us to edit these files because they are smaller\n- It will be easier for users to patch in only specific versions if they decide they need to fork certain things\n- It will be possible for users to have a custom version of one file while still getting bug fixes for the other files\n- Provides a more natural way to shim in specific things based on compiler settings without having a combinatorial explosion of concatenated lib.d.ts files\n","author":{"url":"https://github.com/RyanCavanaugh","@type":"Person","name":"RyanCavanaugh"},"datePublished":"2015-08-05T17:17:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":20},"url":"https://github.com/4168/TypeScript/issues/4168"}
| 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:1911af52-9f7b-0f0f-e2e2-ffef4f0c11c9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D204:1122B8:459655:5D11DC:6A629795 |
| html-safe-nonce | 3aae3e4164cae0f76d5651018d5cdec6dcb52a5f1d594e04ab22be436d7fe918 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjA0OjExMjJCODo0NTk2NTU6NUQxMURDOjZBNjI5Nzk1IiwidmlzaXRvcl9pZCI6IjQ0MzA1ODE0NzQyNzE1OTg0ODUiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 22e21723d3deea2687e50dc2857d8f1bf18a22a43c6dab95b796cd20d6e3457e |
| hovercard-subject-tag | issue:99255652 |
| 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/4168/issue_layout |
| twitter:image | https://opengraph.githubassets.com/279c989e365748199a0bd9248293beca95f2f251c0787710c89a041aeca5d99b/microsoft/TypeScript/issues/4168 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/279c989e365748199a0bd9248293beca95f2f251c0787710c89a041aeca5d99b/microsoft/TypeScript/issues/4168 |
| og:image:alt | Right now the compiler depends on a monolithic lib.d.ts file that is resolved according to the script target (ES5 or ES6). We have to build several different lib.d.ts files out of smaller parts. We... |
| 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 | 10ffaff7e212112a3b4eeb224665f909dff951514db9af4f00de33b681024427 |
| 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 | e470e2fc66e1ac7f528caec0fd8825047788d563 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width