hoppscotch/types/ts-utils.d.ts

2 lines
91 B
TypeScript
Raw Normal View History

2021-05-15 12:43:31 +00:00
export type KeysMatching<T, V> = { [K in keyof T]-?: T[K] extends V ? K : never }[keyof T]