---
title: "Discussion on \"What are TypeScript Discriminated Unions and Why Should You Care?\" | Hashnode"
description: "Discussion on \"What are TypeScript Discriminated Unions and Why Should You Care?\". We've all been in a situation where we want to access a set of properties inside an object based on the value of one property key. This is where discriminated unions shine. But before we dive in, let'"
url: "https://hashnode.com/posts/what-are-typescript-discriminated-unions-and-why-should-you-care/6551108d13f826b24e01a549"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [What are TypeScript Discriminated Unions and Why Should You Care?](https://emmanuelisenah.hashnode.dev/what-are-typescript-discriminated-unions-and-why-should-you-care?utm_source=hashnode&utm_medium=feed)

We've all been in a situation where we want to access a set of properties inside an object based on the value of one property key. This is where discriminated unions shine. But before we dive in, let'

Nov 12, 2023 · 5 min read · emmanuelisenah.hashnode.dev  
Updated Jul 21  
Read the article

-   [#typescript](https://hashnode.com/tag/typescript)

## Written by

[Emmanuel Isenah](https://hashnode.com/@EIsenah)

@EIsenah · Nigeria

  
[View profile](https://hashnode.com/@EIsenah)

Full Stack Development

Hi! I'm Emmanuel, a full-stack developer based in Nigeria. I'm all about React, TypeScript, and Next.js.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
