millsp / ts-toolbelt

👷 TypeScript's largest type utility library

Home Page:https://millsp.github.io/ts-toolbelt/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Feature: PickKeys = Exclude<keyof, FilterKeys>

iliubinskii opened this issue · comments

I think the following type can be useful:

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