in a t3 project, do i use trpc for 3rd party APIs?

for example, i want to use this endpoint for github's api https://docs.github.com/en/rest/metrics/statistics?apiVersion=2022-11-28#get-all-contributor-commit-activity should i be using trpc & making a router?
3 Replies
Rhys
Rhys11mo ago
GitHub
GitHub - octokit/octokit.js: The all-batteries-included GitHub SDK ...
The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno. - GitHub - octokit/octokit.js: The all-batteries-included GitHub SDK for Browsers, Node.js, and Deno.
Domcario
DomcarioOP11mo ago
yea, but its not typesafe right? getting a bunch of unsafe assignment and unsafe construction warnings
Paco
Paco11mo ago
Have you tried restarting your TS language server after installing the packages? It can get stuck and not recognize the new types
Want results from more Discord servers?
Add your server