Type Alias SafeOmit<T, Keys>

SafeOmit: Omit<T, Keys>

Checks at compile time that the Keys to omit from T actually exist – which prevents typos.

Type Parameters

  • T
  • Keys extends keyof T