---
title: "Discussion on \"TypeScript Union vs Intersection Types: What A | B and A & B Really Mean\" | Hashnode"
description: "Discussion on \"TypeScript Union vs Intersection Types: What A | B and A & B Really Mean\". What do A | B and A & B mean?\nA union A | B means \"a value of type A or type B\". An intersection A & B means \"a value that is type A and type B at the same time\".\nThe names are easy to read, but the r"
url: "https://hashnode.com/posts/typescript-union-vs-intersection-types-what-a-b-and-a-b-really-mean/6b1147f3cbc34f9cb2ff335a"
---

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

Discussion

# [TypeScript Union vs Intersection Types: What A | B and A & B Really Mean](https://frontend-mind.com/typescript-union-vs-intersection-types-what-a-b-and-a-b-really-mean?utm_source=hashnode&utm_medium=feed)

What do A | B and A & B mean? A union A | B means "a value of type A or type B". An intersection A & B means "a value that is type A and type B at the same time". The names are easy to read, but the r

3h ago · 10 min read · frontend-mind.com  
Read the article

## Written by

[Przemek Szczepański](https://hashnode.com/@przemekfront)

@przemekfront · Kraków, Poland

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

Front-end Software Engineer

Front-end developer who pays special attention to the aesthetics and functionality of websites. I love playing with interesting design solutions, creating interfaces that not only work efficiently, but also attract attention with their unique design. I like to derive pleasure from it, like with my old 'Portfolio' website. After hours, I return to classic games or good movies that stimulate the imagination.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
