What does the following variadic tuple type compute? type Concat = […A, …B];

TypeScript Professional Hard

TypeScript Professional — Hard

What does the following variadic tuple type compute? type Concat = […A, …B];

Key points

  • Concatenates tuples A and B with preserved positional types
  • Does not create a union of elements
  • Not an array type or intersection of element types

Ready to go further?

Related questions