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