catalogComputedAttributeAsCatalogAttribute()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer. See API maturity.
Adapts a catalog computed attribute to a catalog attribute so it can enter attribute-shaped resolution maps and listings.
export declare function catalogComputedAttributeAsCatalogAttribute(item: ICatalogComputedAttribute): ICatalogAttribute;
Parameters
Parameter | Type | Description |
|---|---|---|
item |
Returns
Remarks
Refs stay honest (typed computedAttribute); only the catalog item and metadata object type discriminators are rewritten. See computedAttributeAsAttributeMetadataObject().