Update src/utils/maps.ts

Co-authored-by: Jakub Majorek <majorek.jakub@gmail.com>
This commit is contained in:
mmarkusik 2021-05-11 09:50:49 +02:00 committed by GitHub
parent b6c4d2d19c
commit 4a6290c9e9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -7,7 +7,7 @@ import { Node } from "@saleor/types";
import { MetadataInput } from "@saleor/types/globalTypes";
interface EdgesType<T> {
edges?: Array<{ node: T }>;
edges?: { node: T }[];
}
export function mapEdgesToItems<T>(data?: EdgesType<T>): T[] {