Type alias KeysMatching<T, V>

KeysMatching<T, V>: { [ K in keyof T]-?: T[K] extends V ? K : never }[keyof T]

Returns a union of all keys of type T with values matching type V.

Type Parameters

  • T

  • V

Generated using TypeDoc