Title: Relevant packages: @angular/core, @angular/common · Issue #63092 · angular/angular · GitHub
Open Graph Title: Relevant packages: @angular/core, @angular/common · Issue #63092 · angular/angular
X Title: Relevant packages: @angular/core, @angular/common · Issue #63092 · angular/angular
Description: Which @angular/* package(s) are relevant/related to the feature request? No response Description Enhance Angular’s Resource API with strongly typed errors, inspired by Rust’s Result
Open Graph Description: Which @angular/* package(s) are relevant/related to the feature request? No response Description Enhance Angular’s Resource API with strongly typed errors, inspired by Rust’s Result
X Description: Which @angular/* package(s) are relevant/related to the feature request? No response Description Enhance Angular’s Resource API with strongly typed errors, inspired by Rust’s Result<T, E>. Ri...
Opengraph URL: https://github.com/angular/angular/issues/63092
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Relevant packages: @angular/core, @angular/common","articleBody":"### Which @angular/* package(s) are relevant/related to the feature request?\n\n_No response_\n\n### Description\n\nEnhance Angular’s Resource API with strongly typed errors, inspired by Rust’s Result\u003cT, E>. Right now, errors are always Error instances, making type-safe error handling awkward and encouraging poor ergonomics. In real-world apps, error handling is often more complex than the happy path — we need first-class support for it.\n\n\n\n### Proposed solution\n\nResource\u003cT, E = Error> – Optional generic for error type + hasError() like hasValue().\n\nRemove Error-only restriction – Allow any E, not just Error instances.\n\nWritableResource methods – setError(error: E) & updateError(updater: (value: E) => E).\n\nparseError() in HttpResourceOptions – Transform and type API errors before use.\n\n### Alternatives considered\n\nStronger type safety for error handling.\n\nCleaner templates and component logic.\n\nMore versatile error representation for complex real-world apps.\n\n","author":{"url":"https://github.com/ritikkumar8z","@type":"Person","name":"ritikkumar8z"},"datePublished":"2025-08-11T14:30:38Z","url":"https://github.com/angular/angular/issues/63092"}
| 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:dbc56f8a-e249-bcd6-b69e-9731c54fdb70 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | D27C:31E99C:160B2CA:1D6E0D5:6B0139F5 |
| html-safe-nonce | 506915d5cc9654fc075b992f9b6c5bd29970afe610e7993152b6150876ef2660 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJEMjdDOjMxRTk5QzoxNjBCMkNBOjFENkUwRDU6NkIwMTM5RjUiLCJ2aXNpdG9yX2lkIjoiMjQyNzgzMjc4MjQzMzYzMDcwOSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | e69aaf3c19e97644dcfd36e2e03d27e886947eeb6c504e450a43ad4c4c34680f |
| hovercard-subject-tag | issue:3310334532 |
| 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/63092/issue_layout |
| twitter:image | https://opengraph.githubassets.com/1be03c5a2a5e3b48adf7da60660ef023c582a4bde1f70f43df8263353fc31fea/angular/angular/issues/63092 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/1be03c5a2a5e3b48adf7da60660ef023c582a4bde1f70f43df8263353fc31fea/angular/angular/issues/63092 |
| og:image:alt | Which @angular/* package(s) are relevant/related to the feature request? No response Description Enhance Angular’s Resource API with strongly typed errors, inspired by Rust’s Result |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | ritikkumar8z |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| 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 | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width