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