Feature: PickKeys = Exclude<keyof, FilterKeys>

Author: iliubinskiiCreated Apr 5, 2022Updated Sep 26, 2025

I think the following type can be useful:

typescript
export type PickKeys<
  T extends object,
  E,
  M extends Match = "default"
> = Exclude<keyof T, FilterKeys<T, E, M>>;