Type Alias: PropertyBuilder()<T, M>
PropertyBuilder<
T
,M
>: ({ values, previousValues, propertyValue, index, path, entityId }
) =>Property
<T
> |null
You can use this type to define a property dynamically, based on the current values of the entity, the previous values and the current value of the property, as well as the path and entity ID.
Type Parameters​
• T extends CMSType
= any
• M extends Record
<string
, any
> = any
Parameters​
• {
values,
previousValues,
propertyValue,
index,
path,
entityId
}: PropertyBuilderProps
<M
>
Returns​
Property
<T
> | null