Title: Allow passing in a generic type for the client · Issue #76 · seamapi/javascript-http · GitHub
Open Graph Title: Allow passing in a generic type for the client · Issue #76 · seamapi/javascript-http
X Title: Allow passing in a generic type for the client · Issue #76 · seamapi/javascript-http
Description: Consumers who use seam.client would like to use https://www.npmjs.com/package/typed-axios-instance Supporting typed-axios-instance directly in this library is out of scope. Instead, the SeamHttp class could provide setting the client typ...
Open Graph Description: Consumers who use seam.client would like to use https://www.npmjs.com/package/typed-axios-instance Supporting typed-axios-instance directly in this library is out of scope. Instead, the SeamHttp cl...
X Description: Consumers who use seam.client would like to use https://www.npmjs.com/package/typed-axios-instance Supporting typed-axios-instance directly in this library is out of scope. Instead, the SeamHttp cl...
Opengraph URL: https://github.com/seamapi/javascript-http/issues/76
X: @github
Domain: patch-diff.githubusercontent.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"Allow passing in a generic type for the client","articleBody":"- Consumers who use `seam.client` would like to use https://www.npmjs.com/package/typed-axios-instance\r\n- Supporting typed-axios-instance directly in this library is out of scope.\r\n- Instead, the SeamHttp class could provide setting the client type via 'fromClient`, e.g.,\r\n\r\n```ts\r\nimport { SeamHttp } from '@seamapi/http'\r\nimport type { TypedAxios } from 'typed-axios-instance'\r\n\r\nimport type { Routes } from './routes.js'\r\n\r\nconst seam = new Seam() // create a new instance normally\r\n\r\ntype Client = TypedAxios\u003cRoutes\u003e\r\n\r\nconst seamWithTypedRoutes = Seam.fromClient\u003cClient\u003e(seam.client)\r\n```","author":{"url":"https://github.com/razor-x","@type":"Person","name":"razor-x"},"datePublished":"2024-04-05T21:28:45.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/76/javascript-http/issues/76"}
| 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:5dcbc95e-c3ee-1e5c-640b-d3814c9c8ae9 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | CB70:5491D:1332F77:199766F:697C162D |
| html-safe-nonce | 20f768a28bba8cc3d4fc2b861026d7e93aedcaf4c5f9d2a1de1cfb32bd26bd61 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQjcwOjU0OTFEOjEzMzJGNzc6MTk5NzY2Rjo2OTdDMTYyRCIsInZpc2l0b3JfaWQiOiI0MzIwMDgzMzczMTYzNTUwMjUzIiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | ba3e1f33144e94ea111bd5b8d5fe14d2937be78c567dee2ba638bbfc8b58a9ad |
| hovercard-subject-tag | issue:2228830364 |
| 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/seamapi/javascript-http/76/issue_layout |
| twitter:image | https://opengraph.githubassets.com/974862fc68456af3415fa712f6029d936701f27d1dba198f8cf4b3617b60bd06/seamapi/javascript-http/issues/76 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/974862fc68456af3415fa712f6029d936701f27d1dba198f8cf4b3617b60bd06/seamapi/javascript-http/issues/76 |
| og:image:alt | Consumers who use seam.client would like to use https://www.npmjs.com/package/typed-axios-instance Supporting typed-axios-instance directly in this library is out of scope. Instead, the SeamHttp cl... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | razor-x |
| hostname | github.com |
| expected-hostname | github.com |
| None | da4f0ee56809799586f8ee546b27f94fe9b5893edfbf87732e82be45be013b52 |
| turbo-cache-control | no-preview |
| go-import | github.com/seamapi/javascript-http git https://github.com/seamapi/javascript-http.git |
| octolytics-dimension-user_id | 63884939 |
| octolytics-dimension-user_login | seamapi |
| octolytics-dimension-repository_id | 688698056 |
| octolytics-dimension-repository_nwo | seamapi/javascript-http |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 688698056 |
| octolytics-dimension-repository_network_root_nwo | seamapi/javascript-http |
| 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 | 8a39ac792b6ac233e27375cf1b5f5fb65abbdfaa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width