UNPKG

wj-config

Version:

Javascript configuration module for NodeJS and browser frameworks such as React that works like ASP.net configuration where data sources are specified (usually JSON files) and environment variables can contribute/overwrite values by following a naming con

9 lines 639 B
import type { IEnvironment, IEnvironmentDefinition } from "./wj-config.js"; /** * Builds an environment object with the provided environment information. * @param currentEnvironment The application's current environment. * @param possibleEnvironments The complete list of all possible environments. * @returns The newly created `IEnvironment<TEnvironments>` object. */ export declare function buildEnvironment<TEnvironment extends string>(possibleEnvironments: readonly TEnvironment[], currentEnvironment: TEnvironment | IEnvironmentDefinition<TEnvironment>): IEnvironment<TEnvironment>; //# sourceMappingURL=buildEnvironment.d.ts.map