The string‑valued env map your project uses (for example,
{ APP_SETTING?: string }). Keys propagate to dynamic function arguments.
Allowed environment names used for envVars (defaults to string).
The full config type being produced (defaults to GetDotenvConfig<Vars, Env>).
This type parameter is rarely supplied explicitly.
The configuration object literal.
The same cfg value, with its type preserved for inference.
Define a strongly‑typed get‑dotenv configuration document for JS/TS authoring.
This helper is compile‑time only: it returns the input unchanged at runtime, but enables rich TypeScript inference for
vars,envVars, anddynamic, and validates property names and value shapes as you author the config.