added tests, aot fixes, lint fixes

This commit is contained in:
lotte
2019-10-15 15:58:40 +02:00
parent bafb2f3490
commit 7ca88021c9
68 changed files with 749 additions and 651 deletions

View File

@@ -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>];
}
}