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

19 lines 677 B
import type { IDataSource } from "../wj-config.js"; import { DataSource } from "./DataSource.js"; /** * Configuration data source class that injects a pre-build JavaScript object into the configuration build chain. */ export declare class ObjectDataSource<T extends Record<string, any>> extends DataSource implements IDataSource<T> { #private; /** * The object to inject. */ private _obj; /** * Initializes a new instance of this class. * @param obj Data object to inject into the configuration build chain. */ constructor(obj: T | (() => Promise<T>)); getObject(): Promise<T>; } //# sourceMappingURL=ObjectDataSource.d.ts.map