SaveEntityWithCallbacksProps
@firecms/core / SaveEntityWithCallbacksProps
Type Alias: SaveEntityWithCallbacksProps<M>
Section titled “Type Alias: SaveEntityWithCallbacksProps<M>”SaveEntityWithCallbacksProps<
M> =SaveEntityProps<M> &object
Defined in: hooks/data/save.ts:8
Type Declaration
Section titled “Type Declaration”onPreSaveHookError()?
Section titled “onPreSaveHookError()?”
optionalonPreSaveHookError: (e) =>void
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
onSaveFailure()?
Section titled “onSaveFailure()?”
optionalonSaveFailure: (e) =>void
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
onSaveSuccess()?
Section titled “onSaveSuccess()?”
optionalonSaveSuccess: (updatedEntity) =>void
Parameters
Section titled “Parameters”updatedEntity
Section titled “updatedEntity”Entity<M>
Returns
Section titled “Returns”void
onSaveSuccessHookError()?
Section titled “onSaveSuccessHookError()?”
optionalonSaveSuccessHookError: (e) =>void
Parameters
Section titled “Parameters”Error
Returns
Section titled “Returns”void
Type Parameters
Section titled “Type Parameters”M extends Record<string, any>