Skip to content

Commit 4607fe0

Browse files
authored
Replace InferPojoType with InferRawDocTypeWithout_id
1 parent df6faab commit 4607fe0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/types/inferrawdoctype.test.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { InferRawDocType, type InferPojoType, type ResolveTimestamps, type Schema, type Types } from 'mongoose';
1+
import { InferRawDocType, type InferRawDocTypeWithout_id, type ResolveTimestamps, type Schema, type Types } from 'mongoose';
22
import { expectType } from 'tsd';
33

44
function inferPojoType() {
@@ -20,7 +20,7 @@ function inferPojoType() {
2020
}
2121
};
2222

23-
type UserType = InferPojoType< typeof schemaDefinition>;
23+
type UserType = InferRawDocTypeWithout_id<typeof schemaDefinition>;
2424
expectType<{ email: string, password: string, dateOfBirth: Date }>({} as UserType);
2525
}
2626
function gh14839() {

0 commit comments

Comments
 (0)