From 6c3c67361a7733df635319328f60edc6e36d658e Mon Sep 17 00:00:00 2001 From: TkDodo Date: Wed, 19 Nov 2025 12:01:07 +0100 Subject: [PATCH 1/2] ref: type reduce --- static/app/stores/groupStore.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/app/stores/groupStore.tsx b/static/app/stores/groupStore.tsx index 11920ee00f60d0..dee0c04a054de5 100644 --- a/static/app/stores/groupStore.tsx +++ b/static/app/stores/groupStore.tsx @@ -150,8 +150,7 @@ const storeConfig: GroupStoreDefinition = { }, mergeItems(items: Item[]) { - const itemsById: Record = items.reduce((acc, item) => { - // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message + const itemsById = items.reduce>((acc, item) => { acc[item.id] = item; return acc; }, {}); From 746f8662d11a684ea8e79ddafdcd08edf6fdd135 Mon Sep 17 00:00:00 2001 From: TkDodo Date: Wed, 19 Nov 2025 12:02:52 +0100 Subject: [PATCH 2/2] ref: another one --- static/app/stores/groupStore.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/static/app/stores/groupStore.tsx b/static/app/stores/groupStore.tsx index dee0c04a054de5..ba000651551882 100644 --- a/static/app/stores/groupStore.tsx +++ b/static/app/stores/groupStore.tsx @@ -188,8 +188,7 @@ const storeConfig: GroupStoreDefinition = { */ addToFront(items) { items = toArray(items); - const itemMap: Record = items.reduce((acc, item) => { - // @ts-expect-error TS(7053): Element implicitly has an 'any' type because expre... Remove this comment to see the full error message + const itemMap = items.reduce>((acc, item) => { acc[item.id] = item; return acc; }, {});