Skip to main content

@journeyapps/reactor-lib-data-layer

Classes

ClassDescription
Collection-
LifecycleCollectionWraps an existing collection with data-to-model conversion, and is smart about creating / patching and deleting models based on how the wrapping collection loads items
PaginatedCollection-
PaginatedSearchResult-

Interfaces

AsSearchResultOptions

Type Parameters

Type Parameter
T

Properties

PropertyType
idTransformer(item) => string
match(item) => boolean

CollectionListener

Properties

PropertyType
cleared() => any

LifecycleCollectionOptions

Type Parameters

Type Parameter
Serialized
Model extends LifecycleModel<Serialized>

Properties

PropertyType
collectionCollection<Serialized>
generateModel(d) => Model
getKeyForSerialized(s) => string

LifecycleModel

Type Parameters

Type Parameter
Serialized

Properties

PropertyType
keystring

Methods

dispose()
dispose(): any;
Returns

any

patch()
patch(data): any;
Parameters
ParameterType
dataSerialized
Returns

any


LoadEvent

Properties

PropertyType
abortedboolean

PaginatedCollectionOptions

Type Parameters

Type Parameter
T
R

Properties

PropertyType
hasMore?(res) => boolean
loaderIterator?() => | AsyncIterator<R, any, any> | Promise<AsyncIterator<R, any, any>>
transformer(res) => T[]

PaginatedSearchResultEntry

Extends

  • SearchResultEntry

Type Parameters

Type ParameterDefault type
Tany

Properties

PropertyTypeInherited from
itemT-
keystringSearchResultEntry.key