From 88705c9b8434eb6410f4fdf950da75370ae394bd Mon Sep 17 00:00:00 2001 From: Skillz Date: Wed, 26 Aug 2020 16:52:05 -0400 Subject: [PATCH] fix last collection type for return --- src/utils/collection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/collection.ts b/src/utils/collection.ts index 84d3bba17..0ceb347e5 100644 --- a/src/utils/collection.ts +++ b/src/utils/collection.ts @@ -20,7 +20,7 @@ export class Collection extends Map { return this.values().next().value; } - last() { + last(): V { return [...this.values()][this.size - 1]; }