vtils

Home > types > OmitBy

OmitBy type

Omit all properties of given type in object type

Signature:

export declare type OmitBy<T, P> = Pick<
  T,
  {
    [K in keyof T]: T[K] extends P ? never : K;
  }[keyof T]
>;