File tree 2 files changed +15
-1
lines changed 2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -323,3 +323,17 @@ async function gh11955() {
323
323
324
324
populatedParent . children . find ( ( { name } ) => console . log ( name ) ) ;
325
325
}
326
+
327
+ function gh12136 ( ) {
328
+ type ChildDocument = Child & Document ;
329
+ type ParentDocument = Parent & Document ;
330
+
331
+ class Child {
332
+ parent : PopulatedDoc < ParentDocument > ;
333
+ }
334
+
335
+ class Parent {
336
+ child : PopulatedDoc < ChildDocument > ;
337
+ }
338
+
339
+ }
Original file line number Diff line number Diff line change @@ -459,7 +459,7 @@ declare module 'mongoose' {
459
459
$pop ?: AnyKeys < TSchema > & AnyObject ;
460
460
$pull ?: Mutable < mongodb . PullOperator < TSchema > > ;
461
461
$push ?: Mutable < mongodb . PushOperator < TSchema > > ;
462
- $pullAll ?: mongodb . PullAllOperator < TSchema > ;
462
+ $pullAll ?: AnyKeys < TSchema > & AnyObject ;
463
463
464
464
/** @see https://docs.mongodb.com/manual/reference/operator/update-bitwise/ */
465
465
$bit ?: Record < string , mongodb . NumericType > ;
You can’t perform that action at this time.
0 commit comments