simplify exposed APi

This commit is contained in:
Kevin Jahns
2019-04-12 20:04:07 +02:00
parent 4582832a71
commit 07a6a0044b
6 changed files with 46 additions and 99 deletions

View File

@@ -263,16 +263,6 @@ export const replaceStruct = (store, struct, newStruct) => {
structs[findIndexSS(structs, struct.id.clock)] = newStruct
}
/**
* @param {StructStore} store
* @param {ID} id
* @return {boolean}
*
* @private
* @function
*/
export const exists = (store, id) => id.clock < getState(store, id.client)
/**
* Read StateMap from Decoder and return as Map
*