Title: Add support for generic types to the compiler · Issue #11057 · angular/angular · GitHub
Open Graph Title: Add support for generic types to the compiler · Issue #11057 · angular/angular
X Title: Add support for generic types to the compiler · Issue #11057 · angular/angular
Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x ] feature request [ ] support request => Please do not submit support request here, instead see https://github.com/a...
Open Graph Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x ] feature request [ ] support request => Please do not submit support reques...
X Description: I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x ] feature request [ ] support request => Please do not s...
Opengraph URL: https://github.com/angular/angular/issues/11057
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Add support for generic types to the compiler","articleBody":"**I'm submitting a ...** (check one with \"x\")\n\n```\n[ ] bug report => search github for a similar issue or PR before submitting\n[x ] feature request\n[ ] support request => Please do not submit support request here, instead see https://github.com/angular/angular/blob/master/CONTRIBUTING.md#question\n```\n\n**Current behavior**\nThe compiler doesn't emit any generic type parameters and compiling that TypeScript code fails with `Generic type ... requires 1 type argument(s)`\n\n**Expected/desired behavior**\nThe compiler should use generic type information\n- **Angular version:** 2.0.0-rc.5\n- **Browser:** [all | Chrome XX | Firefox XX | IE XX | Safari XX | Mobile Chrome XX | Android X.X Web Browser | iOS XX Safari | iOS XX UIWebView | iOS XX WKWebView ] \n- **Language:** [ TypeScript X.X ] \n\nIn my code base, there are a couple of places where I use generic types to help me share code while not lose type information. Up until now, these only existed at compile time and the runtime compiler only saw the JavaScript code without any type information. With the AoT compiler, I currently have to remove all that type information and reduce it to `any` (_shudder_), because the compiler just ignores generic parameters. There are two distinct examples in my code base, which I'll put into separate comments.\n","author":{"url":"https://github.com/Tragetaschen","@type":"Person","name":"Tragetaschen"},"datePublished":"2016-08-25T07:37:01Z","url":"https://github.com/angular/angular/issues/11057"}
| 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:795e9ccb-b5cb-2071-d64b-9d286671ff54 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | AEC8:24ACB9:E92B66:133DF84:6B00FD54 |
| html-safe-nonce | aa310836382e71af3b111a3710429cc5d6a89c8f676856360b182bf51d483335 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJBRUM4OjI0QUNCOTpFOTJCNjY6MTMzREY4NDo2QjAwRkQ1NCIsInZpc2l0b3JfaWQiOiI1OTMzNjE5ODA1MDk2NTc0MjkyIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 652f1056774f7ebedfcff51dc6da94b4b7d57cbd90a4ee0bf61251deca9d3edb |
| hovercard-subject-tag | issue:173133305 |
| 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/angular/angular/11057/issue_layout |
| twitter:image | https://opengraph.githubassets.com/ee147a022469ff96e2c3ac2bb003b9e083327f7d7a39f17f0f2a04d14bbe99d8/angular/angular/issues/11057 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/ee147a022469ff96e2c3ac2bb003b9e083327f7d7a39f17f0f2a04d14bbe99d8/angular/angular/issues/11057 |
| og:image:alt | I'm submitting a ... (check one with "x") [ ] bug report => search github for a similar issue or PR before submitting [x ] feature request [ ] support request => Please do not submit support reques... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | Tragetaschen |
| hostname | github.com |
| expected-hostname | github.com |
| None | e208d86428ec00a57ade75058166297440e8128a01e5287c31a53dc042bbf187 |
| turbo-cache-control | no-preview |
| go-import | github.com/angular/angular git https://github.com/angular/angular.git |
| octolytics-dimension-user_id | 139426 |
| octolytics-dimension-user_login | angular |
| octolytics-dimension-repository_id | 24195339 |
| octolytics-dimension-repository_nwo | angular/angular |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 24195339 |
| octolytics-dimension-repository_network_root_nwo | angular/angular |
| 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 | 7dafd017fb7809a839c443dba08622af38e63c09 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width