93219: Simplify DataService feature interfaces

Get rid of optional methods
- createPatchFromCache is useful -> make required
- leave getFindAllHref and getSearchByHref out & use implementation directly or refactor usages
This commit is contained in:
Yury Bondarenko
2022-09-12 17:34:25 +02:00
parent c32e4ad7c7
commit 8b4dbbad55
23 changed files with 86 additions and 192 deletions

View File

@@ -50,7 +50,7 @@ export interface PatchData<T extends CacheableObject> {
* Return a list of operations representing the difference between an object and its latest value in the cache.
* @param object the object to resolve to a list of patch operations
*/
createPatchFromCache?(object: T): Observable<Operation[]>;
createPatchFromCache(object: T): Observable<Operation[]>;
}
/**