Skip to content

Commit f344f63

Browse files
committed
types: avoid flattening/transforming MongoDB Sessions to fix tests
1 parent cfd1bb5 commit f344f63

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -829,7 +829,7 @@ declare module 'mongoose' {
829829
? Types.DocumentArray<FlattenMaps<ItemType>> : FlattenMaps<T>;
830830

831831
export type actualPrimitives = string | boolean | number | bigint | symbol | null | undefined;
832-
export type TreatAsPrimitives = actualPrimitives | NativeDate | RegExp | symbol | Error | BigInt | Types.ObjectId | Buffer | Function | mongodb.Binary;
832+
export type TreatAsPrimitives = actualPrimitives | NativeDate | RegExp | symbol | Error | BigInt | Types.ObjectId | Buffer | Function | mongodb.Binary | mongodb.ClientSession;
833833

834834
export type SchemaDefinitionType<T> = T extends Document ? Omit<T, Exclude<keyof Document, '_id' | 'id' | '__v'>> : T;
835835

0 commit comments

Comments
 (0)