Think Throothinkthroo.hashnode.dev·Nov 2, 2024arrayToDict function in tRPC source codeIn this article, we analyze arrayToDict function found in tRPC source code. // https://github.com/trpc/trpc/pull/669 function arrayToDict(array: unknown[]) { const dict: Record<number, unknown> = {}; for (let index = 0; index < array.length; index+...DiscussJavaScript
Think Throothinkthroo.hashnode.dev·Nov 1, 2024httpBatchLink types in tRPC source code explainedIn this article, we analyze the httpBatchLink types found in the tRPC source code. But first, you would want to knowwhat is httpBatchLink. httpBatchLink: Below is an example picked from the tRPC vanilla setup guide. import { createTRPCClient, httpBat...DiscussJavaScript
Think Throothinkthroo.hashnode.dev·Oct 31, 2024Istanbul usage in tRPC source codeIn this article, we analyze Istanbul usage in tRPC source code. I found this comment — istanbul ignore if. This hints that tRPC uses Istanbul.js, a tool that makes JavaScript test coverage simple. This one took me a while to figure out that tRPC repo...DiscussJavaScript
Think Throothinkthroo.hashnode.dev·Oct 25, 2024rollup-plugin-analyzer usage in trpc scriptsIn the previous article, we provided a mental picture of functions in analyzeSizeChange.ts file, In this article, let’s find out how the actual size change is analyzed. import analyze from 'rollup-plugin-analyzer'; export default function analyzeSize...DiscussJavaScript
Think Throothinkthroo.hashnode.dev·Oct 24, 2024analyzeSizeChange script in tRPC source codeIn this article, we provide an overview of analyzeSizeChange script in trpc source code. This file has the following functions: 1. func analyzeSizeChange2. func onAnalysis3. type GitHubLogType4. type GitHubLogOptions5. func logNewModule6. func logDif...DiscussJavaScript
Think Throothinkthroo.hashnode.dev·Oct 23, 2024kodiak.toml in tRPC source codeIn this article, we analyze kodiak.toml found in tRPC source code. Kodiak Automate your GitHub Pull Requests using Kodiak Auto Update — Keep your PRs up to date with master automatically Auto Merge — Add the automerge label to auto merge once CI an...Discusskodiak
Lakshay vaishnavlakshayvaishnav.hashnode.dev·Jul 21, 2024What are tRPC's and why they are better than RESTFUL API'SIn order to understand tRPC'S first we need to understand what are RPC'S What are RPC'S RPC's stands for remote procedure calls and as the name suggests it is a protocol used in network programming that allows a program to execute a procedure (a bloc...Discuss·44 readstrpc
Rakesh Potnuruitsrakesh.hashnode.dev·Jul 19, 2024Let's Build a Full-Stack App with tRPC and Next.js App routerPublished from Publish Studio Are you a typescript nerd looking to up your full-stack game? Then this guide is for you. The traditional way to share types of your API endpoints is to generate schemas and share them with the front end or other servers...DiscussFull-Stack App with tRPC and Next.js App routertrpc
Floffahblog.floffah.dev·Jun 19, 2024Conquering tRPC Type Errors in MonoreposAfter a quick google, it seems it is a common experience for developers using tRPC to be discouraged from using it in monorepos due to the errors that arise from its complex type-based design. But I'm here to tell you how to fix these errors without ...Discuss·1 like·46 readstrpc
Prabin Subediprabincankod.hashnode.dev·May 4, 2024Currently Listening As A Service, SunalRahalApproximately 18 months ago, I was wandering around the internet when I stumbled upon a guy who was Pushing what he was listening to at his Github's Readme. I am not able to recall the guy's name, but back then, he was monitoring the phone's music n...Discussprabincankod