Type alias DataReceivingCallback<T>

DataReceivingCallback<T>: ((item: T, index: number) => void)

Type Parameters

  • T

Type declaration

    • (item: T, index: number): void
    • Function that call as callback in db.getAll for do some actions with received item. Should be ONLY sync

      Parameters

      • item: T

        Item that received from the store

      • index: number

        Item's position in the store (not confuse with key)

      Returns void

Generated using TypeDoc