fix(objectmap): getArray() now has correct return type

This commit is contained in:
2019-03-15 23:50:39 +01:00
parent 7956cf6ace
commit 50a9697baf
5 changed files with 55 additions and 24 deletions

View File

@ -95,7 +95,7 @@ export class Objectmap<T> {
/**
* returns a cloned array of all the objects currently in the Objectmap
*/
public getArray() {
public getArray(): T[] {
const returnArray: any[] = [];
for (const objectItem of this.objectArray) {
returnArray.push(objectItem);