mirror of
https://github.com/DSpace/dspace-angular.git
synced 2025-10-12 20:43:08 +00:00
added tests, aot fixes, lint fixes
This commit is contained in:
@@ -1,6 +1,7 @@
|
||||
import { ListableObject } from '../../shared/object-collection/shared/listable-object.model';
|
||||
import { TypedObject } from '../cache/object-cache.reducer';
|
||||
import { ResourceType } from './resource-type';
|
||||
import { GenericConstructor } from './generic-constructor';
|
||||
|
||||
/**
|
||||
* Class object representing a browse entry
|
||||
@@ -29,7 +30,7 @@ export class BrowseEntry implements ListableObject {
|
||||
*/
|
||||
count: number;
|
||||
|
||||
getRenderTypes(): string[] {
|
||||
return [this.constructor.name];
|
||||
getRenderTypes(): Array<string | GenericConstructor<ListableObject>> {
|
||||
return [this.constructor as GenericConstructor<ListableObject>];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user