Type alias StrictOmit<Type, Keys>

StrictOmit<Type, Keys>: Type extends AnyArray
    ? never
    : Omit<Type, Keys>

StrictOmit<Type, Keys> constructs a type by picking all properties from Type and then removing Keys

This is stricter version of Omit, meaning StrictOmit validates that properties Keys exist in type Type

Type Parameters

  • Type extends AnyRecord
  • Keys extends keyof Type