Type alias UpdateCallback<T>

UpdateCallback<T>: ((item: T) => Promise<void>)

Type Parameters

  • T

Type declaration

    • (item: T): Promise<void>
    • Function that call as callback in db.update for modifying item, should modify item object directly, without returning them

      Parameters

      • item: T

        Store's item to update

      Returns Promise<void>

Generated using TypeDoc