Validate an untrusted object of overrides (config file or browser storage). Unknown keys, wrong types, and out-of-range values are dropped, never clamped, so a typo cannot silently weaken a guard.
Untrusted input.
Optional
When given, keep only settings consumed by that process.
Accepted values and rejection reasons.
normalizePajaSettings({ 'fs.maxWatchCount': 32 }).values; // { 'fs.maxWatchCount': 32 } Copy
normalizePajaSettings({ 'fs.maxWatchCount': 32 }).values; // { 'fs.maxWatchCount': 32 }
Validate an untrusted object of overrides (config file or browser storage). Unknown keys, wrong types, and out-of-range values are dropped, never clamped, so a typo cannot silently weaken a guard.