Class ArrayObjectStore<T>
Type Parameters
Hierarchy
- ArrayObjectStore (View Summary)
Index
Constructors
Accessors
Methods
Constructors
constructor
- new ArrayObjectStore<T = BaseArrayObjectEntryStore>(
params?: ArrayObjectStoreParams,
): ArrayObjectStore<T> Type Parameters
Parameters
Optional
params: ArrayObjectStoreParams
Returns ArrayObjectStore<T>
Accessors
Protected
_data
dataReducer
- get dataReducer(): DynArrayReducer<T>
Returns DynArrayReducer<T>
The data reducer.
length
- get length(): number
Returns number
The length of all data.
Static
EntryStore
- get EntryStore(): ObjectEntryStore
Returns ObjectEntryStore
The default object entry store constructor.
Methods
[iterator]
clearEntries
createEntry
deleteEntry
duplicateEntry
findEntry
getEntry
set
subscribe
- subscribe(handler: Subscriber<T[]>): Unsubscriber
Parameters
- handler: Subscriber<T[]>
Callback function that is invoked on update / changes.
Returns Unsubscriber
Unsubscribe function.
- handler: Subscriber<T[]>
toJSON
updateSubscribers
- updateSubscribers(update?: ArrayObjectUpdateData): void
Updates subscribers.
Parameters
Optional
update: ArrayObjectUpdateData
Returns void
Provide an iterator for public access to entry stores.