From 265837b5cdaf29fd1e8c8ad1d63e35086d73931b Mon Sep 17 00:00:00 2001 From: garrettmills Date: Thu, 25 Nov 2021 16:50:01 -0600 Subject: [PATCH] Fix stupid typescript error... --- src/util/collection/AsyncCollection.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/collection/AsyncCollection.ts b/src/util/collection/AsyncCollection.ts index c6901fd..aa29c85 100644 --- a/src/util/collection/AsyncCollection.ts +++ b/src/util/collection/AsyncCollection.ts @@ -330,7 +330,7 @@ export class AsyncCollection { await this.each(async (item, index) => { const result = await func(item, index) if ( typeof result !== 'undefined' ) { - newItems.push(result as NonNullable) + newItems.push(result as unknown as NonNullable) } })