What does the intersection type `A & B` mean in TypeScript?

TypeScript Associate Easy

TypeScript Associate — Easy

What does the intersection type `A & B` mean in TypeScript?

Key points

  • Intersection type requires a value to meet the criteria of both types.
  • It is denoted by the `&` symbol in TypeScript.
  • This type is useful for creating complex types by combining multiple types.

Ready to go further?

Related questions