API Documentation
    Preparing search index...

    Class AsyncWritableInMemoryStore<ItemType, IDType>

    A writeable asynchronous store.

    Type Parameters

    • ItemType extends Record<string, any>
    • IDType extends string | number

    Hierarchy (View Summary)

    Implements

    Index

    Accessors

    • get id(): string | undefined

      ID of the store.

      Returns string | undefined

    • get idProperty(): string | undefined

      Name of the property used as ID. If not provided, the 'getIdentity' method must be declared.

      Returns string | undefined

    Methods

    • Saves the given item. Depending on the specified options, a new item is created or a given item is updated.

      Parameters

      Returns Promise<void | ItemType>

    • Delete an item by id.

      Parameters

      • id: IDType

        id of item to delete

      Returns Promise<void>