2 lines
91 B
TypeScript
2 lines
91 B
TypeScript
export type KeysMatching<T, V> = { [K in keyof T]-?: T[K] extends V ? K : never }[keyof T]
|