From b9d043f16ec1bca59815d754e5200c8d19603e66 Mon Sep 17 00:00:00 2001 From: Magdalena Markusik Date: Tue, 11 May 2021 14:14:05 +0200 Subject: [PATCH] Fix types in map utils --- src/utils/maps.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/utils/maps.ts b/src/utils/maps.ts index cfb3e4ee2..548051ad9 100644 --- a/src/utils/maps.ts +++ b/src/utils/maps.ts @@ -7,7 +7,7 @@ import { Node } from "@saleor/types"; import { MetadataInput } from "@saleor/types/globalTypes"; interface EdgesType { - edges?: { node: T }[]; + edges?: Array<{ node: T }>; } export function mapEdgesToItems(data?: EdgesType): T[] {