61949: finished refactoring, adding type doc

This commit is contained in:
lotte
2019-04-29 16:21:36 +02:00
parent af291845ec
commit b2ceb8e9d6
39 changed files with 397 additions and 108 deletions

View File

@@ -35,12 +35,13 @@ export interface Patch {
export interface TypedObject {
type: ResourceType;
}
/**
* An interface to represent objects that can be cached
*
* A cacheable object should have a self link
*/
export interface CacheableObject {
export interface CacheableObject extends TypedObject {
uuid?: string;
self: string;
// isNew: boolean;
@@ -50,8 +51,6 @@ export interface CacheableObject {
// save(): void;
}
// export type TypedCacheableObject = TypedObject & CacheableObject;
/**
* An entry in the ObjectCache
*/