Skip to content

Commit

Permalink
fix typescript tests
Browse files Browse the repository at this point in the history
  • Loading branch information
vkarpov15 committed Dec 9, 2024
1 parent 5698453 commit dd57286
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions types/inferschematype.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -229,17 +229,19 @@ type IsSchemaTypeFromBuiltinClass<T> = T extends (typeof String)
? true
: T extends (typeof Schema.Types.Double)
? true
: T extends Types.ObjectId
: T extends (typeof Schema.Types.Boolean)
? true
: T extends Types.Decimal128
: T extends Types.ObjectId
? true
: T extends Buffer
: T extends Types.Decimal128
? true
: T extends NativeDate
: T extends Buffer
? true
: T extends (typeof Schema.Types.Mixed)
: T extends NativeDate
? true
: IfEquals<T, Schema.Types.ObjectId, true, false>;
: T extends (typeof Schema.Types.Mixed)
? true
: IfEquals<T, Schema.Types.ObjectId, true, false>;

/**
* @summary Resolve path type by returning the corresponding type.
Expand Down

0 comments on commit dd57286

Please sign in to comment.