Asserts that a value is an object, not null, and not an array.
Unlike isObject, this function does not narrow the value to a generic indexable structure. Instead, it
preserves the existing static type of the variable. This makes it ideal for validating option objects or
interface-based inputs where all properties may be optional.
Use this function when:
- Youexpectavaluetobeanobjectatruntime, **and** - Youwanttokeepitscompile-timetypeintact after validation.
Asserts that a value is an object, not null, and not an array.
Unlike isObject, this function does not narrow the value to a generic indexable structure. Instead, it preserves the existing static type of the variable. This makes it ideal for validating option objects or interface-based inputs where all properties may be optional.
Use this function when: