When you want to exclude certain properties from a type, TypeScript provides the ________ utility type.

  • Exclude
  • Omit
  • Partial
  • Pick
TypeScript provides the Omit utility type when you want to exclude certain properties from a type. It allows you to create a new type that includes all properties from the original type except the specified ones. This is helpful for creating more specific types based on existing ones.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *