---
title: "#type-guard articles | Hashnode"
description: "Explore 2 articles tagged #type-guard on Hashnode. Tutorials, guides, and how-tos from the community."
url: "https://hashnode.com/tag/type-guard"
---

Tag

# #type-guard

2 posts · 0 followers

[Nyaomaru](https://hashnode.com/@nyaomaru) · [Jul 8](https://hashnode.com/posts/building-type-guards-like-lego-blocks-making-reusable-logic-with-is-kit/6a4e5441302ffae0a0d82121)

### [Building Type Guards Like LEGO Blocks: Making Reusable Logic with is-kit](https://nyaomaru.hashnode.dev/building-type-guards-like-lego-blocks-making-reusable-logic-with-is-kit?utm_source=hashnode&utm_medium=feed)

Stop 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](https://nyaomaru.hashnode.dev/building-type-guards-like-lego-blocks-making-reusable-logic-with-is-kit?utm_source=hashnode&utm_medium=feed)

[Iman Rousta](https://hashnode.com/@irousta) · [Mar 9, 2023](https://hashnode.com/posts/typescript-type-guards-an-introduction/6409ed8f6b5ccef6ff20fff8)

### [TypeScript Type Guards: An Introduction](https://irousta.hashnode.dev/typescript-type-guards-an-introduction?utm_source=hashnode&utm_medium=feed)

Type 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](https://irousta.hashnode.dev/typescript-type-guards-an-introduction?utm_source=hashnode&utm_medium=feed)
