mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-07 18:14:17 +00:00
refactored resource type and type mapping
This commit is contained in:
6
src/app/core/cache/object-cache.reducer.ts
vendored
6
src/app/core/cache/object-cache.reducer.ts
vendored
@@ -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;
|
||||
|
Reference in New Issue
Block a user