Developer Tools Get the Most Out of Payload CMS Custom Translations On a recent project, we used Payload CMS. The helper functions we added made working with custom translations even easier.
TypeScript How to Create an NPM Package in TypeScript from the Ground Up Demystify the creation of a TypeScript NPM package by starting from the absolute minimum amount of code and building up a complete importable module.
TypeScript How to Deal with “Optional” and “Undefined” in TypeScript You have no choice but to deal with optional things and "undefined" in JavaScript, but the great news is, there are many tools to deal with them.
Developer Tools 4 Tips for Software Testing with Playwright My software development team is using Playwright as an end-to-end testing framework for our TypeScript/Svelte project.
Prisma Build an SQL Query from Variables with a Prisma Raw Query (prisma.$queryRaw) 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.
TypeScript Module Augmentation is a Hidden Gem in TypeScript Module augmentation and interface merging extend and modify existing modules without altering their original source code.
C# My Typescript to C# Cheatsheet To facilitate learning C#, I created a Typescript to C# cheatsheet to help map commonly-used TypeScript concepts to their C# counterparts.
ChatGPT Port Elmish to Typescript: A Conversation with ChatGPT Here's how a conversation with ChatGPT helped me figure out how to export Elmish to Typescript in my current software project.
Development Practices Achieve Cleaner Test Setup with the Blueprint Pattern The Blueprint pattern abstracts the creation of data models into reusable, type-safe helpers, reducing boilerplate and improving readability.
Development Practices The Discriminated Union: Writing Easy-to-Use Types in TypeScript I’d encourage you to give discriminated unions a shot next time you find yourself needing to model subtypes.
TypeScript Build a Lightweight Code Generator with TypeScript and JSON Imports On a recent project, my team created a lightweight code generator, with reusable techniques I want to share. Read on for the why and the how.
TypeScript Typescript Switches on Multiple Inputs I recently found myself wanting a two-dimensional switch statement in TypeScript. Here's one way to write one!