@@ -225,7 +225,9 @@ type ResolvePathType<PathValueType, Options extends SchemaTypeOptions<PathValueT
225
225
IsSchemaTypeFromBuiltinClass < Item > extends true ?
226
226
ObtainDocumentPathType < Item , TypeKey > [ ] :
227
227
IsItRecordAndNotAny < Item > extends true ?
228
- Types . DocumentArray < ObtainDocumentType < Item , any , { typeKey : TypeKey } > > :
228
+ Item extends Record < string , never > ?
229
+ ObtainDocumentPathType < Item , TypeKey > [ ] :
230
+ Types . DocumentArray < ObtainDocumentType < Item , any , { typeKey : TypeKey } > > :
229
231
ObtainDocumentPathType < Item , TypeKey > [ ]
230
232
> :
231
233
PathValueType extends ReadonlyArray < infer Item > ?
@@ -238,7 +240,9 @@ type ResolvePathType<PathValueType, Options extends SchemaTypeOptions<PathValueT
238
240
IsSchemaTypeFromBuiltinClass < Item > extends true ?
239
241
ObtainDocumentPathType < Item , TypeKey > [ ] :
240
242
IsItRecordAndNotAny < Item > extends true ?
241
- Types . DocumentArray < ObtainDocumentType < Item , any , { typeKey : TypeKey } > > :
243
+ Item extends Record < string , never > ?
244
+ ObtainDocumentPathType < Item , TypeKey > [ ] :
245
+ Types . DocumentArray < ObtainDocumentType < Item , any , { typeKey : TypeKey } > > :
242
246
ObtainDocumentPathType < Item , TypeKey > [ ]
243
247
> :
244
248
PathValueType extends StringSchemaDefinition ? PathEnumOrString < Options [ 'enum' ] > :
0 commit comments