mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-10 19:43:04 +00:00
switch to typedObject decorator, which no longer needs explict type param
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
import { autoserialize, deserialize, inheritSerialization } from 'cerialize';
|
||||
import { resourceType } from '../cache/builders/build-decorators';
|
||||
import { typedObject } from '../cache/builders/build-decorators';
|
||||
import { CacheableObject } from '../cache/object-cache.reducer';
|
||||
import { excludeFromEquals } from '../utilities/equals.decorators';
|
||||
import { EXTERNAL_SOURCE } from './external-source.resource-type';
|
||||
@@ -9,7 +9,7 @@ import { ResourceType } from './resource-type';
|
||||
/**
|
||||
* Model class for an external source
|
||||
*/
|
||||
@resourceType(ExternalSource.type)
|
||||
@typedObject
|
||||
export class ExternalSource extends CacheableObject {
|
||||
static type = EXTERNAL_SOURCE;
|
||||
|
||||
|
Reference in New Issue
Block a user