UNPKG

@konkonam/nuxt-shopify

Version:

Easily integrate shopify with nuxt 3 and 4 🚀

14 lines (13 loc) • 303 B
/** * Flattens a GraphQL connection object by extracting its nodes. * * @param connection - The object containing edges or nodes * * @returns An array of nodes */ export declare const flattenConnection: <T>(connection?: { edges?: { node: T; }[]; nodes?: T[]; } | null) => T[];