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

17 lines 759 B
import { IDataSource, Predicate } from "../wj-config.js"; type PostMergeFn = (config: any) => any; export declare class BuilderImpl { #private; /** * Flag to determine if the last call in the builder was the addition of a data source. */ _lastCallWasDsAdd: boolean; postMerge(fn: PostMergeFn): void; add(dataSource: IDataSource): void; name(name: string): void; when(predicate: Predicate<any>, dataSourceName?: string): void; createUrlFunctions(wsPropertyNames: string | number | symbol | (string | number | symbol)[], routeValuesRegExp?: RegExp): void; build(traceValueSources: boolean, evaluatePredicate: Predicate<Function>): Promise<Record<string, any>>; } export {}; //# sourceMappingURL=BuilderImpl.d.ts.map