hoppscotch/types/ts-utils.d.ts

4 lines
93 B
TypeScript
Raw Normal View History

2021-05-17 11:41:58 +00:00
export type KeysMatching<T, V> = {
[K in keyof T]-?: T[K] extends V ? K : never
}[keyof T]