Skip to content

Commit 8491d43

Browse files
committed
fix: have InsertOneOptions extend CommandOperationOptions
1 parent 0b636ba commit 8491d43

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/operations/insert.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { MongoError } from '../error';
22
import { defineAspects, Aspect, AbstractOperation } from './operation';
3-
import { CommandOperation } from './command';
3+
import { CommandOperation, CommandOperationOptions } from "./command";
44
import { prepareDocs } from './common_functions';
55
import type { Callback, MongoDBNamespace } from '../utils';
66
import type { Server } from '../sdam/server';
@@ -46,7 +46,7 @@ export class InsertOperation extends CommandOperation<Document> {
4646
}
4747

4848
/** @public */
49-
export interface InsertOneOptions extends BSONSerializeOptions, WriteConcernOptions {
49+
export interface InsertOneOptions extends CommandOperationOptions {
5050
/** Allow driver to bypass schema validation in MongoDB 3.2 or higher. */
5151
bypassDocumentValidation?: boolean;
5252
/** Force server to assign _id values instead of driver. */

0 commit comments

Comments
 (0)