Skip to content

PropertyMap

PropertyMap = Record<string, undefined | string | string[] | boolean | number | null | Record<string, unknown> | any>

Holds an Item’s Property values in their plain form, keyed by Property key, as exposed by properties on an Item.

Each value is the raw form of its data type: strings, numbers and booleans as themselves, option keys for selects (string | null for a single-select, string[] for a multi-select), Luxon DateTime objects for instant and datetime, ISO 8601 strings for date, time and duration, and the parsed value for json. A Property that is unset, holds a value that no longer fits its definition, or is not granted to the active principal reads as undefined (an unset single-select reads null and an unset multi-select []). PropertyValueMap carries the same values tagged with their data type.

Handle incomplete data