mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-18 15:33:04 +00:00
added tests, aot fixes, lint fixes
This commit is contained in:
@@ -2,6 +2,7 @@ import { ListableObject } from '../../shared/object-collection/shared/listable-o
|
||||
import { isNotEmpty } from '../../shared/empty.util';
|
||||
import { MetadataSchema } from './metadata-schema.model';
|
||||
import { ResourceType } from '../shared/resource-type';
|
||||
import { GenericConstructor } from '../shared/generic-constructor';
|
||||
|
||||
/**
|
||||
* Class the represents a metadata field
|
||||
@@ -51,7 +52,7 @@ export class MetadataField implements ListableObject {
|
||||
return key;
|
||||
}
|
||||
|
||||
getRenderTypes(): string[] {
|
||||
return [this.constructor.name];
|
||||
getRenderTypes(): Array<string | GenericConstructor<ListableObject>> {
|
||||
return [this.constructor as GenericConstructor<ListableObject>];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user