UNPKG

@valantic/spartacus-mock

Version:

This project offers you the possibility to mock the OCC Endpoints of your Composable Storefront (Spartacus). It uses the Mock Service Worker to mock the API calls.

13 lines (12 loc) 397 B
import { CmsResponsiveBannerComponentMedia } from '@spartacus/core'; export interface ResponsiveMediaRendition { key: string; width: number; height: number; } export interface ResponsiveMediaInput { code: string; altText: string; renditions: ResponsiveMediaRendition[]; } export declare const media: (mediaInput: ResponsiveMediaInput) => CmsResponsiveBannerComponentMedia;