Which of the following correctly describes a distributive conditional type?

TypeScript Professional Hard

TypeScript Professional — Hard

Which of the following correctly describes a distributive conditional type?

Key points

  • Distributive conditional types apply to union members
  • Checked type must be a naked type parameter
  • Enables conditional logic for each union member
  • Useful for creating flexible type transformations

Ready to go further?

Related questions