Tag: ts
All the articles with the tag "ts".
Tech Watch Posts
Real-world uses of TypeScript’s utility types
Published: at 01:42 PMSam Rose walks us through some real-world usage of TypeScript’s utility types in their day job’s open source codebase to help those new to the language get to grips with this key capability.
Don't use TypeScript types like this. Use Map Pattern instead
Published: at 02:22 PMDiscover how to improve TypeScript type flexibility and maintainability using the Map Pattern. Learn to avoid tightly coupled code, enforce stricter controls, and follow the Open/Closed Principle for cleaner, more scalable TypeScript projects. Read the full guide now.
Implement a Credits System with Stripe (my messy notes)
Published: at 02:44 PMA practical implementation guide for adding a Stripe-based credits system to your web application. Learn how to create the essential components including user models, Stripe product setup, checkout sessions, webhook handlers, and credit management functions—all documented with clear TypeScript code examples for seamless integration.
Understanding TypeScript Object.entries Type Safety with Generic Types
Published: at 03:59 PMLearn how to maintain type safety when using Object.entries in TypeScript by creating custom generic types that preserve key-value type relationships in your objects.
Understanding TypeScript Type Inference with Column Formatters
Published: at 03:58 PMLearn how to implement type-safe column formatters in TypeScript using advanced type inference, from basic approaches to an elegant mapped type solution for data table components.
React "as" Prop Using TypeScript
Published: at 02:08 PMLearn how to type the "as" prop in React to dynamically change the rendered HTML tag.
Essential Typescript for React
Published: at 02:33 PMThe minimum set of typescript knowledge to be effective at product development with React
The TSConfig Cheat Sheet
Published: at 03:29 PMThe TSConfig Cheat Sheet is a comprehensive guide to configuring TypeScript. It covers the base options, strictness, transpiling with TypeScript, building for a library, and building for a library in a monorepo. Some of the important points from this article are that es2022 is the best option for stability, and that you should use strict mode.