Skip to content

Commit 95a2be7

Browse files
actually make the change
1 parent 505d6a0 commit 95a2be7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

types/inferrawdoctype.d.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,14 +16,14 @@ declare module 'mongoose' {
1616
SchemaDefinition,
1717
TSchemaOptions extends Record<any, any> = DefaultSchemaOptions,
1818
TTransformOptions = { bufferToBinary: false }
19-
> = Require_id<ApplySchemaOptions<{
19+
> = ApplySchemaOptions<{
2020
[
2121
K in keyof (RequiredPaths<SchemaDefinition, TSchemaOptions['typeKey']> &
2222
OptionalPaths<SchemaDefinition, TSchemaOptions['typeKey']>)
2323
]: IsPathRequired<SchemaDefinition[K], TSchemaOptions['typeKey']> extends true
2424
? ObtainRawDocumentPathType<SchemaDefinition[K], TSchemaOptions['typeKey'], TTransformOptions>
2525
: ObtainRawDocumentPathType<SchemaDefinition[K], TSchemaOptions['typeKey'], TTransformOptions> | null;
26-
}, TSchemaOptions>>;
26+
}, TSchemaOptions>;
2727

2828
export type InferRawDocType<
2929
SchemaDefinition,

0 commit comments

Comments
 (0)