Type Alias: DistributedPropertyTypeOfDistributed<T, K>
DistributedPropertyTypeOfDistributed<
T,K> =ReplaceExactType<TextendsRecord<any,any> ?OptionalPropertyTypeOf<T,K> :never,undefined,never>
Defined in: src/sdk/utils/types/UtilityTypes.ts:80
Gets the type of another type's property. If the property key is a union type, then it is distributed. If the parent
type is a union, then it will be distributed. If a property exists on at least one distributed parent type and also
does not exist on at least one other parent type, then the property type is returned as a union with undefined. If
a property does not exist on any distributed parent type, 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. |