objectenvy / ConfigObject
Type Alias: ConfigObject
ts
type ConfigObject = {
[key: string]: ConfigValue;
};Defined in: types.ts:21
Nested configuration object with string keys and recursively nested values. Exported as ConfigObject — represents a parsed environment config tree.
Index Signature
ts
[key: string]: ConfigValueRemarks
This is the base structural type for all config objects produced by objectify(). Every key is a string and every value is an EnviableValue (primitive, array, or nested EnviableObject). Prefer using a Zod schema or a concrete TypeScript interface for application config; EnviableObject is intentionally loose to accommodate the runtime-unknown shape of process.env.
Example
ts
import type { ConfigObject } from 'objectenvy';
const config: ConfigObject = { port: 3000, log: { level: 'debug' } };