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

    Function resolveExclusion

    • Resolve a tri-state optional boolean flag under exactOptionalPropertyTypes.

      • If the user explicitly enabled the flag, return true.
      • If the user explicitly disabled (the "...-off" variant), return undefined (unset).
      • Otherwise, adopt the default (true → set; false/undefined → unset).

      Parameters

      • exclude: boolean | undefined

        The "on" flag value as parsed by Commander.

      • excludeOff: true | undefined

        The "off" toggle (present when specified) as parsed by Commander.

      • defaultValue: boolean | undefined

        The generator default to adopt when no explicit toggle is present.

      Returns true | undefined

      boolean | undefined — use undefined to indicate "unset" (do not emit).

      resolveExclusion(undefined, undefined, true); // => true