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

    Type Alias AsProcessEnv<V>

    AsProcessEnv: V extends ProcessEnv ? V : ProcessEnv

    Clamp an arbitrary type to ProcessEnv, falling back to the empty ProcessEnv shape when it doesn't already conform. Used to keep GetDotenvConfig<Vars, Env>'s Vars extends ProcessEnv constraint satisfied while a schema-driven Vars is still being checked for string-valued input (see ProcessEnvZodSchema); the real constraint enforcement happens via the overload's parameter type, not here.

    Type Parameters

    • V

      The candidate Vars shape.