diff --git a/ts/lik.objectmap.ts b/ts/lik.objectmap.ts index 0a9c8fa..268740b 100644 --- a/ts/lik.objectmap.ts +++ b/ts/lik.objectmap.ts @@ -66,14 +66,14 @@ export class Objectmap { /** * gets an object in the Observablemap and removes it, so it can't be retrieved again */ - getOneAndRemove() { + getOneAndRemove(): T { return this.objectArray.shift() } /** * finds a specific element and then removes it */ - findOneAndRemove(findFunction) { + findOneAndRemove(findFunction): T { let foundElement = this.find(findFunction) if (foundElement) { this.remove(foundElement)