Skip to main content

Type Alias: DistributedPropertyTypeOf<T, K>

DistributedPropertyTypeOf<T, K> = K extends keyof T ? T[K] : never

Defined in: src/sdk/utils/types/UtilityTypes.ts:62

Gets the type of another type's property. If the property does not exist, then never is returned. If the property key is a union type, then it is distributed.

Type Parameters

Type ParameterDescription
TThe type containing the property for which to get a type.
KThe key of the property for which to get a type.