Type alias KeysOfValueType<T, VT>

KeysOfValueType<T, VT>: { [ K in keyof T]: T[K] extends VT ? K : never }[keyof T]

This type gives all keys of a Record T that map on a type VT.

Type Parameters

  • T extends Record<string, any>

  • VT

Generated using TypeDoc