computedAttributeAsAttributeMetadataObject()
Beta API. Mostly stable, but details may change in a minor release, outside SemVer.
Adapts a computed attribute to the attribute metadata surface.
export declare function computedAttributeAsAttributeMetadataObject(computedAttribute: IComputedAttributeMetadataObject): IAttributeMetadataObject;
Parameters
Parameter | Type | Description |
|---|---|---|
computedAttribute |
Returns
Remarks
Only the type discriminator is rewritten - the ref, the fabricated display form and the rest of the metadata are kept verbatim. The result therefore CLAIMS to be a plain attribute while its ref.type still says computedAttribute; the ref is the honest signal, not the type. Use it where attribute-shaped consumers must also handle computed attributes.