Question · JavaScript and TypeScript course · Module 7: Advanced TypeScript

Utility type Exclude

Which utility type is used to EXCLUDE specific types from a union type?

Answer options

  • Pick<T, K>
  • Omit<T, K>
  • Exclude<T, U>
  • Record<K, T>

You can check the correct answer by solving this task in the CodeWorlds game.