IK is the type of this index, PK is the type of the primary key of the object of this index.

Type Parameters

  • O

  • IK extends IDBValidKey

  • PK extends IDBValidKey

Constructors

  • Type Parameters

    • O

    • IK extends IDBValidKey

    • PK extends IDBValidKey

    Parameters

    • index: IDBIndex

    Returns Index<O, IK, PK>

Properties

iterator: CursorIterator<O, IK, PK>

Methods

  • Parameters

    • Optional query: IDBKeyRange | IK

    Returns Promise<number>

    See

  • Parameters

    • key: IDBKeyRange | IK

    Returns Promise<undefined | O>

    See

  • Parameters

    • Optional query: IDBKeyRange | IK
    • Optional count: number

    Returns Promise<O[]>

  • Parameters

    • Optional query: IDBKeyRange | IK
    • Optional count: number

    Returns Promise<PK[]>

    See

  • Parameters

    • key: IDBKeyRange | IK

    Returns Promise<undefined | PK>

    See

  • Parameters

    • key: IDBKeyRange | IK

    Returns Promise<O>

    Throws

    when no object with key is found

    See