A descriptor tree where leaves are EnvFields and
branches are plain objects.
Optionalsource: Record<string, string | undefined>The environment variable source. Defaults to process.env.
Parses environment variables into a validated, typed config object.
Every leaf field in the config descriptor must be wrapped with env() —
this is enforced at the TypeScript level.
The function:
source (defaults
to process.env).@cleverbrush/schema object schema from the leaf schemas.schema.validate().EnvValidationError listing
all missing and invalid variables.A descriptor tree where leaves are EnvFields and
branches are plain objects.
Optionalsource: Record<string, string | undefined>The environment variable source. Defaults to process.env.
Parses environment variables into a validated, typed config object.
Every leaf field in the config descriptor must be wrapped with
env()— this is enforced at the TypeScript level.The function:
source(defaults toprocess.env).@cleverbrush/schemaobject schema from the leaf schemas.schema.validate().EnvValidationErrorlisting all missing and invalid variables.