ts-utils.d.ts 93 B

123
  1. export type KeysMatching<T, V> = {
  2. [K in keyof T]-?: T[K] extends V ? K : never
  3. }[keyof T]