PropertyBuilder
@firecms/core / PropertyBuilder
Type Alias: PropertyBuilder()<T, M>
Section titled “Type Alias: PropertyBuilder()<T, M>”PropertyBuilder<
T,M> = ({ values, previousValues, propertyValue, index, path, entityId, authController }) =>Property<T> |null
Defined in: types/properties.ts:287
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
Section titled “Type Parameters”T extends CMSType = any
M extends Record<string, any> = any
Parameters
Section titled “Parameters”{
values, previousValues, propertyValue, index, path, entityId, authController \}Returns
Section titled “Returns”Property<T> | null