diff --git a/src/utils/isModelValueType.ts b/src/utils/isModelValueType.ts index 705ff03..1cb34f0 100644 --- a/src/utils/isModelValueType.ts +++ b/src/utils/isModelValueType.ts @@ -10,5 +10,9 @@ function isPrimitiveValueType(value: any): value is PrimitiveValueType { } export function isModelValueType(value: any): value is ModelValueType { - return isPrimitiveValueType(value) || Array.isArray(value) + return ( + isPrimitiveValueType(value) || + Array.isArray(value) || + typeof value === 'object' + ) }