PokéRogue
    Preparing search index...
    InferKeys: { [K in keyof O]: O[K] extends V ? K : never }[keyof O]

    Type helper to obtain the keys associated with a given value inside an object.
    Functions similarly to Pick, but checking assignability of values instead of keys.

    Type Parameters

    • O extends object

      The type of the object

    • V

      The type of one of O's values.