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

Tag

# #union-type

13 posts · 0 followers

[Kanishka Shashi](https://hashnode.com/@Kshashi22) · [Jul 31](https://hashnode.com/posts/10-typescript-tricks-every-developer-should-know-explained-simply/6a6cdf389a9fc91413988e85)

### [10 TypeScript Tricks Every Developer Should Know (Explained Simply)](https://javasblog.hashnode.dev/10-typescript-tricks-every-developer-should-know-explained-simply?utm_source=hashnode&utm_medium=feed)

TypeScript can feel intimidating at first — all those angle brackets and weird symbols. But once you learn a few tricks, it starts to feel like a superpower instead of a headache. Let's go through som

5 min read · [javasblog.hashnode.dev](https://javasblog.hashnode.dev/10-typescript-tricks-every-developer-should-know-explained-simply?utm_source=hashnode&utm_medium=feed)

[Ayush Rajput](https://hashnode.com/@ayuxsh) · [Jan 11](https://hashnode.com/posts/1-basics-of-typescript-types-union-intersection/6963bdb3d9b98976646dec5a)

### [1\. Basics of Typescript - types | union | intersection](https://typescript123.hashnode.dev/1-basics-of-typescript-types-union-intersection?utm_source=hashnode&utm_medium=feed)

Difference Between Typescript and Javascript Typescript is a superset of javascript with static types thats check at the compile time . TypeScript code must be compiled to JS using ‘tsc’.Type script used for large scalable and production applications...

5 min read · [typescript123.hashnode.dev](https://typescript123.hashnode.dev/1-basics-of-typescript-types-union-intersection?utm_source=hashnode&utm_medium=feed)

[Md Affan Aslam](https://hashnode.com/@affan24) · [Jan 8](https://hashnode.com/posts/union-vs-intersection-in-ts/695f623fec50a4f53fd5f409)

### [Union Vs Intersection in ts](https://tslearnings.hashnode.dev/union-vs-intersection-in-ts?utm_source=hashnode&utm_medium=feed)

Union - | Union acts like the unions in Set type:A = {1,2,3}B = {4,5}AUB = {1,2,3,4,5} So in terms of Typescript: interface Person { name: string; } interface Lifespan { birth: Date; death?: Date; } type unionCheck = Person | Lifespan // Can tak...

2 min read · [tslearnings.hashnode.dev](https://tslearnings.hashnode.dev/union-vs-intersection-in-ts?utm_source=hashnode&utm_medium=feed)

[Mark Pro](https://hashnode.com/@mark-pro) · [Sep 10, 2025](https://hashnode.com/posts/be-expressive-null-handling/68c18ae645e56a973381d956)

### [Be Expressive: Null Handling](https://blog.oneiro.dev/be-expressive-null-handling?utm_source=hashnode&utm_medium=feed)

Null handling in C#

7 min read · [blog.oneiro.dev](https://blog.oneiro.dev/be-expressive-null-handling?utm_source=hashnode&utm_medium=feed)

[Ariska Hidayat](https://hashnode.com/@ariska138) · [Dec 28, 2024](https://hashnode.com/posts/mengatasi-masalah-union-number-dengan-inputan-number-di-typescript/677083165ed0e66a046c6376)

### [Mengatasi Masalah Union Number dengan Inputan Number di TypeScript](https://tech.finlup.id/mengatasi-masalah-union-number-dengan-inputan-number-di-typescript?utm_source=hashnode&utm_medium=feed)

Union number adalah fitur di TypeScript yang memungkinkan Anda mendefinisikan sebuah tipe sebagai kumpulan nilai numerik tertentu. Misalnya, Anda mungkin memiliki sebuah tipe yang hanya menerima angka tertentu, seperti 1 | 2 | 3. Namun, ketika meneri...

3 min read · [tech.finlup.id](https://tech.finlup.id/mengatasi-masalah-union-number-dengan-inputan-number-di-typescript?utm_source=hashnode&utm_medium=feed)

[Stephane Bersier](https://hashnode.com/@Bersier) · [Nov 8, 2024](https://hashnode.com/posts/untagged-algebraic-data-types/672e5ccf9cb1b6cf5198b986)

### [Untagged Algebraic Data Types](https://aiconversations.hashnode.dev/untagged-algebraic-data-types?utm_source=hashnode&utm_medium=feed)

The following is an edited version of an article written by ChatGPT, after some back-and-forth. This summary explores untagged algebraic data types (ADTs), focusing on their similarities and differences with traditional tagged ADTs. We examine union ...

4 min read · [aiconversations.hashnode.dev](https://aiconversations.hashnode.dev/untagged-algebraic-data-types?utm_source=hashnode&utm_medium=feed)

[Akshat Soni](https://hashnode.com/@akshatsoni26) · [Aug 25, 2024](https://hashnode.com/posts/single-vs-double-bars-in-typescript-a-key-comparison/66cadee18cf05242c043e7ef)

### [Single vs Double Bars in TypeScript: A Key Comparison](https://akshatsoni.hashnode.dev/single-vs-double-bars-in-typescript-a-key-comparison?utm_source=hashnode&utm_medium=feed)

Understanding the Differences: Single vs Double Bars in TypeScript

2 min read · [akshatsoni.hashnode.dev](https://akshatsoni.hashnode.dev/single-vs-double-bars-in-typescript-a-key-comparison?utm_source=hashnode&utm_medium=feed)

[Krijan Prajapati](https://hashnode.com/@krijanprajapati) · [Jul 13, 2024](https://hashnode.com/posts/union-in-typescript/669201216e485e62ee77d822)

### [Union in Typescript](https://krijanprajapati.com.np/union-in-typescript?utm_source=hashnode&utm_medium=feed)

Union in typescript allows the variable to hold more than one type of value. It is useful when variable can be of various types. It is defined by | operator between types. //Simple Union let randomValue:string|number=12; randomValue="John Doe"; //ran...

1 min read · [krijanprajapati.com.np](https://krijanprajapati.com.np/union-in-typescript?utm_source=hashnode&utm_medium=feed)

[Lucas Payr](https://hashnode.com/@orasund) · [May 22, 2024](https://hashnode.com/posts/3-reasons-enums-with-superpowers-are-rare-in-enterprise-software/664d6c4cb62135d152876b7c)

### [3 Reasons Enums with superpowers Are Rare in Enterprise Software](https://functional-fieldnotes.hashnode.dev/3-reasons-enums-with-superpowers-are-rare-in-enterprise-software?utm_source=hashnode&utm_medium=feed)

You might have heard of "Enums with superpowers", "Tagged Union Types" or Algebraic Data Types(ADT). It is heavily used in functional programming. And yet, you rarely see them in enterprise codebases. Why is that? A common use case for ADTs is to rep...

4 min read · [functional-fieldnotes.hashnode.dev](https://functional-fieldnotes.hashnode.dev/3-reasons-enums-with-superpowers-are-rare-in-enterprise-software?utm_source=hashnode&utm_medium=feed)

[Ugne Adomaityte](https://hashnode.com/@ugnead) · [Mar 25, 2024](https://hashnode.com/posts/union-types-and-enumerations-explained/66015a90b9d45f2cbecb91c8)

### [Union Types and Enumerations Explained](https://ugneadomaityte.hashnode.dev/union-types-and-enumerations-explained?utm_source=hashnode&utm_medium=feed)

TypeScript as a strictly typed language offers many great features such as union types and enumerations. Features as such are widely used in TypeScript programming and allow developers to write flexible and clean code that is strictly typed. If you n...

2 min read · [ugneadomaityte.hashnode.dev](https://ugneadomaityte.hashnode.dev/union-types-and-enumerations-explained?utm_source=hashnode&utm_medium=feed)
