@ecomplus/utils
Version:
JS utility functions to E-Com Plus (not only) related apps
26 lines • 801 B
TypeScript
declare namespace _default {
/**
* @memberof $ecomConfig
* @description Get the stored value for specified config property.
* @param {string} prop - Configuration property
* @example
* $ecomConfig.get('store_id')
* // => 1011
* $ecomConfig.get('currency')
* // => 'USD'
* $ecomConfig.get('currency_symbol')
* // => '$'
*/
function get(prop: string): any;
/**
* @memberof $ecomConfig
* @description Save the value for specified config property.
* @param {string} prop - Configuration property
* @param {string} value - New prop value
* @example
* $ecomConfig.set('store_id', 1012)
*/
function set(prop: string, value: string): void;
}
export default _default;
//# sourceMappingURL=config.d.ts.map