UNPKG

@scayle/storefront-core

Version:

Collection of essential utilities to work with the Storefront API

9 lines (8 loc) 229 B
/** * Flattens a nested object into a single-level object. * * @param object The object to flatten. * * @returns The flattened object. */ export declare const flattenObject: <T extends Record<string, any>>(object: T) => T;