Skip to content

Commit dd57286

Browse files
committed
fix typescript tests
1 parent 5698453 commit dd57286

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

types/inferschematype.d.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -229,17 +229,19 @@ type IsSchemaTypeFromBuiltinClass<T> = T extends (typeof String)
229229
? true
230230
: T extends (typeof Schema.Types.Double)
231231
? true
232-
: T extends Types.ObjectId
232+
: T extends (typeof Schema.Types.Boolean)
233233
? true
234-
: T extends Types.Decimal128
234+
: T extends Types.ObjectId
235235
? true
236-
: T extends Buffer
236+
: T extends Types.Decimal128
237237
? true
238-
: T extends NativeDate
238+
: T extends Buffer
239239
? true
240-
: T extends (typeof Schema.Types.Mixed)
240+
: T extends NativeDate
241241
? true
242-
: IfEquals<T, Schema.Types.ObjectId, true, false>;
242+
: T extends (typeof Schema.Types.Mixed)
243+
? true
244+
: IfEquals<T, Schema.Types.ObjectId, true, false>;
243245

244246
/**
245247
* @summary Resolve path type by returning the corresponding type.

0 commit comments

Comments
 (0)