@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.
20 lines (19 loc) • 564 B
TypeScript
import { MockConfig } from '../types';
/**
* The LocalStorageService is responsible for creating the local storage entry needed for the Spartacus Mock Server.
*/
export declare class LocalStorageService {
protected config: MockConfig;
constructor(config: MockConfig);
/**
* Update the local storage entry.
* @param key
* @param value
*/
updateLocalStorage(key: string, value: any): void;
/**
* Create the local storage entries if they do not exist yet.
* @param _config
*/
private createLocalstorage;
}