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.
1 parent 2dda096 commit 13f8ce3Copy full SHA for 13f8ce3
types/types.d.ts
@@ -70,7 +70,7 @@ declare module 'mongoose' {
70
create(obj: any): THydratedDocumentType;
71
72
/** Searches array items for the first document with a matching _id. */
73
- id(id: any): THydratedDocumentType | null;
+ id(id: ObjectId | string | number | Buffer): THydratedDocumentType | null;
74
75
push(...args: (AnyKeys<T> & AnyObject)[]): number;
76
0 commit comments