export type KeysMatching = { [K in keyof T]-?: T[K] extends V ? K : never }[keyof T]