Type Alias: PropertyTypeOf<T, K>
PropertyTypeOf<
T,K> = [K] extends [keyofT] ?T[K] :never
Defined in: src/sdk/utils/types/UtilityTypes.ts:28
Gets the type of another type's property. If the property does not exist, then never is returned.
Type Parameters
| Type Parameter | Description |
|---|---|
T | The type containing the property for which to get a type. |
K | The key of the property for which to get a type. |