Provides a base implementation for store entries in ArrayObjectStore.

In particular providing the required getting / accessor for the 'id' property.

Type Parameters

Implements

Constructors

Accessors

  • get _data(): T
  • Returns T

    The object data tracked by this store.

  • get id(): string
  • Returns string

    The ID attribute in object data tracked by this store.

Methods

  • Update subscribers of this store. Useful for child implementations.

    Returns void

  • Returns T

    A JSON data object for the backing data. The default implementation directly returns the backing private data object. You may override this method to clone the data via ObjectEntryStore._data.

  • Invoked by ArrayObjectStore to provide custom duplication. Override this static method in your entry store.

    Parameters

    • data: object

      A copy of local data w/ new ID already set.

    • arrayStore: ArrayObjectStore<any>

      The source ArrayObjectStore instance.

    Returns void