Type alias KeysOfType<Type, Match>

KeysOfType<Type, Match>: { [ Key in keyof Type]-?: Type[Key] extends Match ? Key : never }

Type that returns an array of all keys of a provided object that are of of the provided type, or a subtype of the type.

Type Parameters

  • Type extends object

  • Match

Generated using TypeDoc v0.23.24