Associates a schema builder with an environment variable name.
Every leaf field in a config descriptor passed to parseEnv() must be
wrapped with env(). This is enforced at the TypeScript level — passing
a bare schema builder produces a compile-time error.
Type Parameters
TextendsSchemaBuilder<any,any,any,any,any>
Parameters
varName: string
The environment variable name to read (e.g. 'DB_HOST').
Associates a schema builder with an environment variable name.
Every leaf field in a config descriptor passed to
parseEnv()must be wrapped withenv(). This is enforced at the TypeScript level — passing a bare schema builder produces a compile-time error.