@karmaniverous/get-dotenv
    Preparing search index...

    Function defineGetDotenvConfig

    • 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, and dynamic, and validates property names and value shapes as you author the config.

      Type Parameters

      • Vars extends ProcessEnv

        The string‑valued env map your project uses (for example, { APP_SETTING?: string }). Keys propagate to dynamic function arguments.

      • Env extends string = string

        Allowed environment names used for envVars (defaults to string).

      • T extends GetDotenvConfig<Vars, Env> = GetDotenvConfig<Vars, Env>

        The full config type being produced (defaults to GetDotenvConfig<Vars, Env>). This type parameter is rarely supplied explicitly.

      Parameters

      • cfg: T

        The configuration object literal.

      Returns T

      The same cfg value, with its type preserved for inference.