read-config-ng
Version:
Multi format configuration loader
25 lines • 893 B
TypeScript
import { ConfigObject, ConfigValue } from '../types';
/**
* Result of picking a value from a nested object
*/
export interface PickResult {
obj: ConfigObject;
prop: string;
value: ConfigValue;
}
/**
* Pick a value from a nested object using dot notation
* @param obj The object to pick from
* @param prop The property path (e.g., 'a.b.c' or ['a', 'b', 'c'])
* @returns The pick result or null if not found
*/
export declare function pick(obj: ConfigObject, prop: string | string[]): PickResult | null;
/**
* Put a value into a nested object using dot notation
* @param obj The object to modify
* @param prop The property path (e.g., 'a.b.c' or ['a', 'b', 'c'])
* @param value The value to set
* @returns The modified object
*/
export declare function put(obj: ConfigObject, prop: string | string[], value: ConfigValue): ConfigObject;
//# sourceMappingURL=deep.d.ts.map