Home > @i2analyze/i2connect > records > PropertyTypeFromDisplayName
records.PropertyTypeFromDisplayName type
A utility type that represents a property type with a particular display name from a particular item type.
Signature:
type PropertyTypeFromDisplayName<TItemType extends schema.IItemType, TDisplayName extends PropertyTypeDisplayNames<TItemType>> = TItemType extends schema.IItemType<infer PropertyTypes> ? PropertyTypes[TDisplayName] : never;
References: schema.IItemType, PropertyTypeDisplayNames
Introduced: API version 1.0
Type Parameters
Parameter | Type | Description |
---|---|---|
TItemType | extends schema.IItemType | The item type that has the property type. |
TDisplayName | extends PropertyTypeDisplayNames<TItemType> |