From 8023f5a0e53839018c3a7a44b1b7abdcce0d30b9 Mon Sep 17 00:00:00 2001 From: Zynh0722 Date: Tue, 2 Apr 2024 23:50:09 -0700 Subject: [PATCH] better typing --- index.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/index.ts b/index.ts index 3acaf9c..eee0a97 100644 --- a/index.ts +++ b/index.ts @@ -46,6 +46,7 @@ const patchRequests = allPatches.map((testPatchUrl) => })(), ); -const patchDescriptions = await Promise.all(patchRequests); +const dirtyPatchDescriptions = await Promise.all(patchRequests); +const patchDescriptions = dirtyPatchDescriptions.filter((e) => e) as string[]; console.log(patchDescriptions);