@@ -262,15 +262,16 @@ type ResolvePathType<PathValueType, Options extends SchemaTypeOptions<PathValueT
262
262
IfEquals < PathValueType , Schema . Types . Decimal128 > extends true ? Types . Decimal128 :
263
263
IfEquals < PathValueType , Types . Decimal128 > extends true ? Types . Decimal128 :
264
264
IfEquals < PathValueType , Schema . Types . BigInt > extends true ? bigint :
265
- PathValueType extends 'bigint' | 'BigInt' | typeof Schema . Types . BigInt ? bigint :
266
- PathValueType extends 'uuid' | 'UUID' | typeof Schema . Types . UUID ? Buffer :
267
- IfEquals < PathValueType , Schema . Types . UUID > extends true ? Buffer :
268
- PathValueType extends MapConstructor | 'Map' ? Map < string , ResolvePathType < Options [ 'of' ] > > :
269
- IfEquals < PathValueType , typeof Schema . Types . Map > extends true ? Map < string , ResolvePathType < Options [ 'of' ] > > :
270
- PathValueType extends ArrayConstructor ? any [ ] :
271
- PathValueType extends typeof Schema . Types . Mixed ? any :
272
- IfEquals < PathValueType , ObjectConstructor > extends true ? any :
273
- IfEquals < PathValueType , { } > extends true ? any :
274
- PathValueType extends typeof SchemaType ? PathValueType [ 'prototype' ] :
275
- PathValueType extends Record < string , any > ? ObtainDocumentType < PathValueType , any , { typeKey : TypeKey } > :
276
- unknown ;
265
+ IfEquals < PathValueType , BigInt > extends true ? bigint :
266
+ PathValueType extends 'bigint' | 'BigInt' | typeof Schema . Types . BigInt | typeof BigInt ? bigint :
267
+ PathValueType extends 'uuid' | 'UUID' | typeof Schema . Types . UUID ? Buffer :
268
+ IfEquals < PathValueType , Schema . Types . UUID > extends true ? Buffer :
269
+ PathValueType extends MapConstructor | 'Map' ? Map < string , ResolvePathType < Options [ 'of' ] > > :
270
+ IfEquals < PathValueType , typeof Schema . Types . Map > extends true ? Map < string , ResolvePathType < Options [ 'of' ] > > :
271
+ PathValueType extends ArrayConstructor ? any [ ] :
272
+ PathValueType extends typeof Schema . Types . Mixed ? any :
273
+ IfEquals < PathValueType , ObjectConstructor > extends true ? any :
274
+ IfEquals < PathValueType , { } > extends true ? any :
275
+ PathValueType extends typeof SchemaType ? PathValueType [ 'prototype' ] :
276
+ PathValueType extends Record < string , any > ? ObtainDocumentType < PathValueType , any , { typeKey : TypeKey } > :
277
+ unknown ;
0 commit comments