From 8689524aac5674c82c79467ebe96d9c6d942c7fa Mon Sep 17 00:00:00 2001 From: Skillz Date: Sat, 26 Sep 2020 11:24:00 -0400 Subject: [PATCH] fix collection return type --- 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 0ceb347e5..9576512e0 100644 --- a/src/utils/collection.ts +++ b/src/utils/collection.ts @@ -16,7 +16,7 @@ export class Collection extends Map { return [...this.values()]; } - first() { + first(): V { return this.values().next().value; }