@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: undefined | boolean

        The "on" flag value as parsed by Commander.

      • excludeOff: undefined | true

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

      • defaultValue: undefined | boolean

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

      Returns undefined | true

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

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