You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
You cannot specify a recursive type as a type parameter for {+driver-long+}
92
-
classes. The following code snippet defines a recursive type:
91
+
You cannot specify a recursive type as a type parameter for the following
92
+
{+driver-long+} classes:
93
+
94
+
- ``FindCursor``
95
+
- ``AggregationCursor``
96
+
- ``Collection``
97
+
- ``ChangeStream``
98
+
99
+
The following code snippet defines a recursive type:
93
100
94
101
.. code-block:: typescript
95
102
@@ -114,9 +121,9 @@ The preceding code snippet raises the following error at compile time:
114
121
115
122
error TS2615: Type of property 'r' circularly references itself in mapped type '{ [Key in keyof RecursiveType]: [Key, ...NestedPaths<RecursiveType[Key]>]; }'.
116
123
117
-
If you must use a recursive type as your document schema, use version 4.2 of
124
+
If you must apply a recursive type to your documents, use version 4.2 of
0 commit comments