refactored resource type and type mapping

This commit is contained in:
lotte
2019-06-24 16:29:54 +02:00
parent b846384ba7
commit f980b55c1c
101 changed files with 440 additions and 427 deletions

View File

@@ -32,8 +32,8 @@ export interface Patch {
operations: Operation[];
}
export interface TypedObject {
type: ResourceType;
export abstract class TypedObject {
static type: ResourceType;
}
/**
@@ -41,7 +41,7 @@ export interface TypedObject {
*
* A cacheable object should have a self link
*/
export interface CacheableObject extends TypedObject {
export class CacheableObject extends TypedObject {
uuid?: string;
self: string;
// isNew: boolean;