PropertyDefinition
PropertyDefinition =
DataTypeDefinition&object
Describes one Property of a Template as the compiler emits it: a data type declaration together with the Property’s identity, label, index and metadata.
Type Declaration
Section titled “Type Declaration”annotations?
Section titled “annotations?”
readonlyoptionalannotations?: readonly (`ai:${string}`|`pii:${string}`|`sensitivity:${string}`)[]
Annotations declared with annotate, in declaration order; absent when none were declared.
description?
Section titled “description?”
readonlyoptionaldescription?:string
Description set with setDescription.
readonlyindex:"index"|"unique"|null
Index declared on the Property: 'index' for a lookup index, 'unique' for a unique index, null for none.
isExtension?
Section titled “isExtension?”
readonlyoptionalisExtension?:boolean
true when the Property was added through a Template extension on an Item rather than declared on the Template.
readonlykey:string
Key of the Property within its Template.
readonlylabel:string
Display label of at most 500 characters; defaults to the key.
metadata
Section titled “metadata”
readonlymetadata:object
Metadata set with setMetadata, keyed by strings of at most 256 characters.
Index Signature
Section titled “Index Signature”[key: string]: MetadataValue
readonlyprn:string
PRN of the Property, <templatePrn>/property/<key>.
- Persistence
- PropertyBuilder for declaring a Property
- PropertyValue for a stored value tagged with its data type

