Type alias KeysMatching<T, V>

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

Get the keys of the given type where the value matches the given argument.

Type Parameters

  • T

  • V

Generated using TypeDoc