I recently found myself wanting a two-dimensional switch statement in TypeScript. Here's one way to write one!
The Sealed Interface is a new addition in Java 17 that allows developers to emulate the discriminated union data structure.
Recently, I worked on an Expo app for people who suffer from reduced hand dexterity. I thought: why not set up passwordless authentication?
One-off CLI scripts that share code with the application are valuable. Here's my favorite way to run them in a Node.js TypeScript project.
It's easy to use z.infer to get the output type of a Zod validator. But what if you have a generic validator that depends on another type?
Add type declarations to address this error: Argument of type string is not assignable to parameter of type never.
Observables are new to me and may be to you, too. Here, I’ll walk you through what I learned from building a stoplight using observables.
Using prisma.$queryRaw, I was able to write a basic query that returned the data I needed. However, I also needed the query to filter and order the data.
Recently I was tasked with updating the API documentation on a project to OpenAPI format. Here's how to get started using it in your project.
Microfrontends aren’t the only thing you can use module federation for, but it’s certainly where a majority of the interest seems to be right now.
Let’s update our project with the correct TypeScript types; then, let’s look at how to use our updated types to contribute to the Definitely Typed project.