NNyaomaru·Jul 8Building Type Guards Like LEGO Blocks: Making Reusable Logic with is-kitStop copy-pasting TypeScript type guards. Learn how to compose reusable, type-safe guard logic with is-kit using struct, and, or, safeParse, and more.7 min read·nyaomaru.hashnode.dev
IIman Rousta·Mar 9, 2023TypeScript Type Guards: An IntroductionType Guards are a TypeScript technique used to get information about the type of a variable, usually within a conditional or functional block. Type guards can prevent runtime errors in TypeScript by narrowing down the type of an object or variable. I...8 min read·irousta.hashnode.dev