UNPKG

@idxdb/promised

Version:

@idxdb/promised wraps the IndexedDB API. It allows you to easily store and retrieve data in an indexed db database using async/await syntax, making it easier to integrate with your existing codebase.

8 lines (7 loc) 395 B
import { ValueCursorInterface } from '../component/interface/components.interface.js'; import { KeyCursor } from '../component/key-cursor.js'; export declare class ValueCursor<PK extends IDBValidKey, K extends IDBValidKey, R> extends KeyCursor<PK, K> implements ValueCursorInterface<PK, K, R> { get value(): R | undefined; delete(): Promise<void>; update(value: R): Promise<void>; }