@equinor/mad-core
Version:
Core library for the Mobile App Delivery team
10 lines (9 loc) • 573 B
TypeScript
import { Environment, EnvironmentContextualConfig } from "../types";
/**
* Given the currently selected environment (dev, test, qa, prod),
* this method creates proxies for the "mad config" so that it resolves to the correct environment values.
* This handles all configuration possibilities, from 0 to 4 different environments.
* @param scheme The environment scheme of the application.
* @returns A proxied config with all values resolved to the provided schemes.
*/
export declare function createEnvironmentProxy(scheme: Environment): EnvironmentContextualConfig;