Welshman Docs / @welshman/app / storageAdapters
Variable: storageAdapters ​
conststorageAdapters:object
Defined in: packages/app/src/storage.ts:152
Type declaration ​
fromCollectionStore() ​
fromCollectionStore: <
T>(keyPath,store,options) =>object
Type Parameters ​
• T
Parameters ​
keyPath ​
string
store ​
Writable<T[]>
options ​
Returns ​
object
keyPath ​
keyPath:
string
options ​
options:
StorageAdapterOptions
store ​
store:
Writable<T[]>
fromMapStore() ​
fromMapStore: <
T>(store,options) =>object
Type Parameters ​
• T
Parameters ​
store ​
Writable<Map<string, T>>
options ​
Returns ​
object
keyPath ​
keyPath:
string="key"
options ​
options:
StorageAdapterOptions
store ​
store:
object
store.set() ​
store.set: (
x) =>void
Parameters ​
x ​
any[]
Returns ​
void
store.update() ​
store.update: (
f) =>void
Parameters ​
f ​
(x) => any[]
Returns ​
void
store.subscribe() ​
Parameters ​
this ​
void
run ​
Subscriber<any[]>
invalidate? ​
Invalidator<any[]>
Returns ​
Unsubscriber
fromObjectStore() ​
fromObjectStore: <
T>(store,options) =>object
Type Parameters ​
• T
Parameters ​
store ​
Writable<Record<string, T>>
options ​
Returns ​
object
keyPath ​
keyPath:
string="key"
options ​
options:
StorageAdapterOptions
store ​
store:
object
store.set() ​
store.set: (
x) =>void
Parameters ​
x ​
any[]
Returns ​
void
store.update() ​
store.update: (
f) =>void
Parameters ​
f ​
(x) => any[]
Returns ​
void
store.subscribe() ​
Parameters ​
this ​
void
run ​
Subscriber<any[]>
invalidate? ​
Invalidator<any[]>
Returns ​
Unsubscriber
fromRepository() ​
fromRepository: (
repository,options) =>object
Parameters ​
repository ​
options ​
Returns ​
object
keyPath ​
keyPath:
string="id"
options ​
options:
StorageAdapterOptions
store ​
store:
WritableWithGetter<TrustedEvent[]>
fromRepositoryAndTracker() ​
fromRepositoryAndTracker: (
repository,tracker,options) =>object
Parameters ​
repository ​
tracker ​
options ​
Returns ​
object
keyPath ​
keyPath:
string="id"
options ​
options:
StorageAdapterOptions
store ​
store:
WritableWithGetter<object[]>
fromTracker() ​
fromTracker: (
tracker,options) =>object
Parameters ​
tracker ​
options ​
Returns ​
object
keyPath ​
keyPath:
string="key"
options ​
options:
StorageAdapterOptions
store ​
store:
WritableWithGetter<object[]>