Check that options is a plain options object (or undefined) whose keys are all in
known, and throw a ReiseValidationError otherwise. A JavaScript caller's typo
(warnedonly for warnedOnly, timeout for timeoutMs) was ignored silently and the
default applied; TypeScript catches it at compile time, JavaScript does not. A key set
to undefined changes nothing and passes. __proto__ and constructor are never
option names.
Check that
optionsis a plain options object (or undefined) whose keys are all inknown, and throw a ReiseValidationError otherwise. A JavaScript caller's typo (warnedonlyforwarnedOnly,timeoutfortimeoutMs) was ignored silently and the default applied; TypeScript catches it at compile time, JavaScript does not. A key set toundefinedchanges nothing and passes.__proto__andconstructorare never option names.