@maverickcer/env-cap
    Preparing search index...

    Type Alias Validator<T>

    Validator: (value: T, rawEnv: RawEnv) => true | string

    Validates an already-processed value; return true when valid, or a human-readable error string when invalid.

    Type Parameters

    • T

    Type Declaration

      • (value: T, rawEnv: RawEnv): true | string
      • Parameters

        Returns true | string

    Receives the full raw env for conditional validation (e.g. "required only if X").