Skip to content

ValidationMode

ValidationMode = "strict" | "warn"

Defined in: types.ts:105

How loadConfig reacts to a schema validation failure.

  • "strict" (default): throw. Matches a build tool that should fail at boot.
  • "warn": log a warning via the supplied logger and return the merged, unvalidated input cast to T. Lets a host downgrade hard failures to a warning (e.g. behind an env flag).