Title: Suggestion: Add "lib" reference directive · Issue #15732 · microsoft/TypeScript · GitHub
Open Graph Title: Suggestion: Add "lib" reference directive · Issue #15732 · microsoft/TypeScript
X Title: Suggestion: Add "lib" reference directive · Issue #15732 · microsoft/TypeScript
Description: Following discussion at DefinitelyTyped/DefinitelyTyped#15140, it seems that we might benefit from adding a new lib reference directive similar to the types reference directive we have today. The lib reference directive would allow an in...
Open Graph Description: Following discussion at DefinitelyTyped/DefinitelyTyped#15140, it seems that we might benefit from adding a new lib reference directive similar to the types reference directive we have today. The l...
X Description: Following discussion at DefinitelyTyped/DefinitelyTyped#15140, it seems that we might benefit from adding a new lib reference directive similar to the types reference directive we have today. The l...
Opengraph URL: https://github.com/microsoft/TypeScript/issues/15732
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Suggestion: Add \"lib\" reference directive","articleBody":"Following discussion at https://github.com/DefinitelyTyped/DefinitelyTyped/issues/15140, it seems that we might benefit from adding a new `lib` reference directive similar to the `types` reference directive we have today. The `lib` reference directive would allow an individual file to specify one or more **lib** files to include when the file is included.\r\n\r\n### Example\r\n```ts\r\n/// \u003creference lib=\"es2015, dom\" /\u003e\r\n```\r\n\r\nThis would allow individuals using `@types/core-js` (or any other polyfill/shim library) to automatically get the correct types. \r\n","author":{"url":"https://github.com/rbuckton","@type":"Person","name":"rbuckton"},"datePublished":"2017-05-10T15:51:57.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":0},"url":"https://github.com/15732/TypeScript/issues/15732"}
| 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:b1638962-7368-75e2-24c6-8c933521af32 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | B4B4:27A975:170320:20E231:6A621A21 |
| html-safe-nonce | 6a6637c4e3b00d7924416f4b27a3c9a8a278b09fe007df5d6966480d76fcb8e8 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJCNEI0OjI3QTk3NToxNzAzMjA6MjBFMjMxOjZBNjIxQTIxIiwidmlzaXRvcl9pZCI6IjI2NjUxOTU1ODc3MzQxNDQzMyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 6163f752b71eb740ba3dc44f0102b2b680f7316d26119efe1e7e009dcfd623a6 |
| hovercard-subject-tag | issue:227727377 |
| 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/15732/issue_layout |
| twitter:image | https://opengraph.githubassets.com/02999e48909d2cf7cfcb127d8ff79860c199cb34235647118dc23be89a34c91b/microsoft/TypeScript/issues/15732 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/02999e48909d2cf7cfcb127d8ff79860c199cb34235647118dc23be89a34c91b/microsoft/TypeScript/issues/15732 |
| og:image:alt | Following discussion at DefinitelyTyped/DefinitelyTyped#15140, it seems that we might benefit from adding a new lib reference directive similar to the types reference directive we have today. The l... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | rbuckton |
| hostname | github.com |
| expected-hostname | github.com |
| None | ccf61cb7ab435725b916ed640f57c45b2c4721db9469bc32656080efc5214b3e |
| 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 | a7585b3d2ee639495a70ce464d0a18bad88ea12c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width