We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6043907 + 5be82c3 commit fadb450Copy full SHA for fadb450
types/index.d.ts
@@ -353,7 +353,7 @@ declare module 'mongoose' {
353
statics: { [F in keyof TStaticMethods]: TStaticMethods[F] } & { [name: string]: (this: M, ...args: any[]) => any };
354
355
/** Creates a virtual type with the given name. */
356
- virtual<T = HydratedDocument<DocType, TInstanceMethods>>(
+ virtual<T = HydratedDocument<DocType, TInstanceMethods, TVirtuals>>(
357
name: keyof TVirtuals | string,
358
options?: VirtualTypeOptions<T, DocType>
359
): VirtualType<T>;
0 commit comments