@selldone/sdk-storefront
Version:
A TypeScript SDK to connect to your shop and build a fully functional storefront and website by simply developing a frontend web application. All backend operations are seamlessly managed by the serverless Selldone solution.
11 lines (10 loc) • 406 B
TypeScript
import { Product } from "../../models/shop/product/product.model";
export declare class SpecHelper {
static CONVERT_SPEC_JSON_TO_ARRAY(spec_json: Product.ISpec, spec_order: string[] | null): (Product.ISpec & any[]) | (string[] | {
group: string;
})[];
static CONVERT_SPEC_ARRAY_TO_JSON(spec_list: any[]): {
spec_json: Record<string, any>;
spec_order: string[];
};
}