• Type Parameters

    Parameters

    • item: CItem

      The item that was removed.

    • context: HookContext

      Contextual information about the hook.

    Returns Promise<Record<string, any>> | Record<string, any>

    The item to return to remove() instead of the deleted item. Returning a rejected promise will not block the operation, but will return a rejected promise to the caller as well as trigger the onFailure() hook.

    A hook that is triggered after a remove() operation.