Fix types in map utils
This commit is contained in:
parent
a2b9d9d31f
commit
b9d043f16e
1 changed files with 1 additions and 1 deletions
|
@ -7,7 +7,7 @@ import { Node } from "@saleor/types";
|
|||
import { MetadataInput } from "@saleor/types/globalTypes";
|
||||
|
||||
interface EdgesType<T> {
|
||||
edges?: { node: T }[];
|
||||
edges?: Array<{ node: T }>;
|
||||
}
|
||||
|
||||
export function mapEdgesToItems<T>(data?: EdgesType<T>): T[] {
|
||||
|
|
Loading…
Reference in a new issue