1
0

added typedoc

This commit is contained in:
lotte
2019-03-21 17:20:33 +01:00
parent d820991beb
commit b62e5786ab
12 changed files with 140 additions and 22 deletions

View File

@@ -22,11 +22,18 @@ import {
import { CacheableObject, ObjectCacheEntry, ObjectCacheState } from './object-cache.reducer';
import { AddToSSBAction } from './server-sync-buffer.actions';
/**
* The base selector function to select the object cache in the store
*/
const objectCacheSelector = createSelector(
coreSelector,
(state: CoreState) => state['cache/object']
);
/**
* Selector function to select an object entry by self link from the cache
* @param selfLink The self link of the object
*/
const entryFromSelfLinkSelector =
(selfLink: string): MemoizedSelector<CoreState, ObjectCacheEntry> => createSelector(
objectCacheSelector,